You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Fixes copying of shared libraries while bundling on MacOS which was resulting in an assertion violation from Poco.
* Fixes MacOS not changing to the directory of a script launched from finder.
* Fixes the enter key not pressing the default button in audio form lists.
* Linux cross compilation should work again, the Linux build script was pulling down the wrong version of Angelscript.
* `#pragma platform` has been deprecated, you should use the command line to specify platforms instead.
* Adds preprocessor macros to check platform! You can surround code in `#if android ... #endif` for example, or `#if_not windows ... #endif` as well.
Copy file name to clipboardexpand all lines: doc/src/appendix/Changelog.md
+8
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,14 @@
1
1
# Changelog
2
2
This document lists all major changes that have taken place in NVGT since we started keeping track.
3
3
4
+
## New in 0.89.1-beta (10/09/2024):
5
+
* Fixes copying of shared libraries while bundling on MacOS which was resulting in an assertion violation from Poco.
6
+
* Fixes MacOS not changing to the directory of scripts launched from finder.
7
+
* Fixes the enter key not pressing the default button in audio form lists.
8
+
* Linux cross compilation should work again, the Linux build script was pulling down the wrong version of Angelscript.
9
+
*`#pragma platform` has been deprecated, you should use the command line / menu options / UI to specify platforms instead.
10
+
* Adds preprocessor macros to check platform! You can surround code in `#if android ... #endif` for example, or `#if_not windows ... #endif` as well. You can even use this to specify custom includes or pragmas just on certain platforms.
11
+
4
12
## New in 0.89.0-alpha (10/09/2024):
5
13
* NVGT has now switched to using InnoSetup for it's installer, adding several new options such as adding to path, start menu icons etc.
6
14
* Added the script_function::get_namespace() method as well as script_function::retrieve() which takes a native function handle derived from a funcdef.
Copy file name to clipboardexpand all lines: doc/src/manual/-Toolkit Configuration.md
+3-4
Original file line number
Diff line number
Diff line change
@@ -170,17 +170,16 @@ For more information on these properties, the [Angelscript custom options docume
170
170
## `#pragma` directives
171
171
In a few cases, it is also possible to configure some aspects of NVGT's behavior directly from within nvgt scripts themselves using the `#pragma` preprocessor directive.
172
172
173
-
This directive is used to safely tell the engine about anything that doesn't directly have to do with your script code but also without causing some sort of compilation error due to bad syntax. A pragma directive could do anything, from embedding a file to choosing a target platform to adding include directories and more.
173
+
This directive is used to safely tell the engine about anything that doesn't directly have to do with your script code but also without causing some sort of compilation error due to bad syntax. A pragma directive could do anything, from embedding a file to selecting assets to choosing to adding include directories and more.
174
174
175
175
The syntax for a pragma directive looks like `#pragma name value` or sometimes just `#pragma name` if the option does not require a value. In some cases when a value is to contain a long or complex enough string such as a path, you may need to surround the value in quotes such as `#pragma name "value."`
176
176
177
177
### Available directives
178
178
*`#pragma include <directory>`: search for includes in the given directory (directive can be repeated)
179
-
*`#pragma platform <platform>`: select what platform to compile for same as -p argument (auto, android, linux, mac, windows)
180
179
*`#pragma stub <stubname>`: select what stub to compile using (see remarks at the bottom of this article)
181
180
*`#pragma embed <packname>`: embed the given pack into the compiled executable file itself
182
-
*`#pragma asset pathname`: copy the given asset/assets into the bundled product as resources
183
-
*`#pragma document pathname`: copy the given asset/assets into the bundled product as documents intended for the user to access rather than the programmer
181
+
*`#pragma asset <pathname>`: copy the given asset/assets into the bundled product as resources
182
+
*`#pragma document <pathname>`: copy the given asset/assets into the bundled product as documents intended for the user to access rather than the programmer
184
183
*`#pragma plugin <plugname>`: load and activate a plugin given it's dll basename
185
184
*`#pragma compiled_basename <basename>`: the output filename of the compiled executable without the extension
186
185
*`#pragma bytecode_compression <level from 0 to 9>`: controls the compression level for bytecode saved in the compiled executable (0 disabled 9 maximum)
@@ -232,7 +232,7 @@ class nvgt_compilation_output_impl : public virtual nvgt_compilation_output {
232
232
StringTokenizer excludes(config.getString("build.shared_library_excludes", "plist TrueAudioNext GPUUtilities systemd_notify sqlite git2 curl"), ""); // Todo: Make this a whitelist once plugins have a way to communicate about extra libraries they load.
// On the mac, we can execute the hdiutil command to create a .dmg file. Otherwise, we must create a .zip instead, as it can portably store unix file attributes.
@@ -386,7 +386,7 @@ class nvgt_compilation_output_mac : public nvgt_compilation_output_impl {
0 commit comments