адаптация s13bby/osc под vst и gui. (вайбкод)
вайбкод потому что мне в моменте стало понятно. что проще было сразу писать на фреймворке JUCE, чем адаптировать консольное приложение на MiniAudio. обновляться данный репозиторий не будет. СmakeLists адаптирован онли под linux.
This commit is contained in:
Vendored
+76
@@ -0,0 +1,76 @@
|
||||
# ARA plugin support
|
||||
|
||||
JUCE supports the development of ARA enabled hosts and plugins. Since the ARA SDK is not included
|
||||
in JUCE there are some steps you need to take to enable all ARA related functionality.
|
||||
|
||||
## External dependencies
|
||||
|
||||
- ARA SDK 2.3.0
|
||||
|
||||
You can download the ARA SDK from Celemony's Github. The command below will recursively clone the
|
||||
right version into the `ARA_SDK` directory
|
||||
|
||||
git clone --recursive --branch releases/2.3.0 https://github.com/Celemony/ARA_SDK
|
||||
|
||||
## Enabling ARA features in JUCE
|
||||
|
||||
Once you have downloaded the ARA SDK you need to configure JUCE to use it.
|
||||
|
||||
### The Projucer
|
||||
|
||||
Add the path to the Global Paths settings.
|
||||
|
||||
### CMake
|
||||
|
||||
Use the `juce_set_ara_sdk_path` function in your CMakeLists file.
|
||||
|
||||
Alternatively, if you are building the examples and extras with CMake from the JUCE repo directory
|
||||
you can also specify `-DJUCE_GLOBAL_ARA_SDK_PATH=/your/path/to/ARA_SDK` parameter to CMake to
|
||||
enable ARA.
|
||||
|
||||
## Building the AudioPluginHost with ARA
|
||||
|
||||
The AudioPluginHost has simple ARA hosting features, but you need to modify its build configuration
|
||||
to enable them.
|
||||
|
||||
### The Projucer
|
||||
|
||||
After opening `AudioPluginHost.jucer` go to *Modules* → *juce_audio_processors* and enable the
|
||||
*JUCE_PLUGINHOST_ARA* setting.
|
||||
|
||||
### CMake
|
||||
|
||||
Set `JUCE_PLUGINHOST_ARA=1` inside `AudioPluginHost/CMakeLists.txt`.
|
||||
|
||||
### Loading ARA plugins
|
||||
|
||||
ARA capable plugins will now have two entries in the Create plugin menu, and the one saying (ARA)
|
||||
will activate additional ARA features. If you right click on the plugin in the graph, you can use
|
||||
the “Show ARA host control” item to assign an audio file that the plugin can read through the ARA
|
||||
interfaces.
|
||||
|
||||
## Adding ARA features to existing plugins
|
||||
|
||||
### The Projucer
|
||||
|
||||
Check the Enable ARA option in the Plugin Formats settings. ARA is an extension to VST3 and AU
|
||||
plugins, hence you need to have at least one of those options enabled too for valid build targets.
|
||||
|
||||
### CMake
|
||||
|
||||
Add the property `IS_ARA_EFFECT TRUE` to your `juce_add_plugin` call.
|
||||
|
||||
### Modifying the plugin code
|
||||
|
||||
In addition to the `createPluginFilter()` function that is needed for all audio plugins, you will
|
||||
now need to provide an implementation to the `createARAFactory()` function as well. You can do this
|
||||
by inheriting from `juce::ARADocumentControllerSpecialisation` and using its helper function. The
|
||||
class documentation should make this clear by also providing an example. You can also find an
|
||||
example in the ARAPluginDemo.
|
||||
|
||||
## Learning about ARA
|
||||
|
||||
ARA provides an extensive API that allows you to exchange information with the host in completely
|
||||
new ways. To understand the basics and to build up your knowledge it’s best to read the official
|
||||
ARA documentation, which has approachable introductory sections. You can find the documentation in
|
||||
the SDK directory at `ARA_SDK/ARA_Library/html_docs/index.html`.
|
||||
Vendored
+49
@@ -0,0 +1,49 @@
|
||||
# JUCE Accessibility
|
||||
|
||||
## What is supported?
|
||||
|
||||
Currently JUCE supports Narrator on Windows, VoiceOver on macOS and iOS, and
|
||||
TalkBack on Android. The JUCE accessibility API exposes the following to these
|
||||
clients:
|
||||
|
||||
- Title, description, and help text for UI elements
|
||||
- Programmatic access to UI elements and text
|
||||
- Interaction with UI elements
|
||||
- Full UI keyboard navigation
|
||||
- Posting notifications to listening clients
|
||||
|
||||
## Customising Behaviour
|
||||
|
||||
By default any visible and enabled `Component` is accessible to screen reader
|
||||
clients and exposes some basic information such as title, description, help
|
||||
text and its position in the hierarchy of UI elements.
|
||||
|
||||
The `setTitle()`, `setDescription()` and `setHelpText()` methods can be used
|
||||
to customise the text that will be read out by accessibility clients when
|
||||
interacting with UI elements and the `setExplicitFocusOrder()`,
|
||||
`setFocusContainerType()` and `createFocusTraverser()` methods can be used to
|
||||
control the parent/child relationships and the order of navigation between UI
|
||||
elements.
|
||||
|
||||
## Custom Components
|
||||
|
||||
For further customisation of accessibility behaviours the `AccessibilityHandler`
|
||||
class provides a unified API to the underlying native accessibility libraries.
|
||||
|
||||
This class wraps a component with a given role specified by the
|
||||
`AccessibilityRole` enum and takes a list of optional actions and interfaces to
|
||||
provide programmatic access and control over the UI element. Its state is used
|
||||
to convey further information to accessibility clients via the
|
||||
`getCurrentState()` method.
|
||||
|
||||
To implement the desired behaviours for a custom component, subclass
|
||||
`AccessibilityHandler` and return an instance of this from the
|
||||
`Component::createAccessibilityHandler()` method.
|
||||
|
||||
## Further Reading
|
||||
|
||||
- [NSAccessibility protocol](https://developer.apple.com/documentation/appkit/nsaccessibility?language=objc)
|
||||
- [UI Automation for Win32 applications](https://docs.microsoft.com/en-us/windows/win32/winauto/entry-uiauto-win32)
|
||||
- A talk giving an overview of this feature from ADC 2020 can be found on
|
||||
YouTube at https://youtu.be/BqrEv4ApH3U
|
||||
|
||||
Vendored
+920
@@ -0,0 +1,920 @@
|
||||
# The JUCE CMake API
|
||||
|
||||
## System Requirements
|
||||
|
||||
- All project types require CMake 3.22 or higher.
|
||||
- Android targets are not currently supported.
|
||||
|
||||
Most system package managers have packages for CMake, but we recommend using the most recent release
|
||||
from https://cmake.org/download. You should always use a CMake that's newer than your build
|
||||
toolchain, so that CMake can identify your build tools and understand how to invoke them.
|
||||
|
||||
In addition to CMake you'll need a build toolchain for your platform, such as Xcode or MSVC.
|
||||
|
||||
## Getting Started
|
||||
|
||||
### Using `add_subdirectory`
|
||||
|
||||
The simplest way to include JUCE in your project is to add JUCE as a
|
||||
subdirectory of your project, and to include the line `add_subdirectory(JUCE)`
|
||||
in your project CMakeLists.txt. This will make the JUCE targets and helper
|
||||
functions available for use by your custom targets.
|
||||
|
||||
### Using `find_package`
|
||||
|
||||
To install JUCE globally on your system, you'll need to tell CMake where to
|
||||
place the installed files.
|
||||
|
||||
# Go to JUCE directory
|
||||
cd /path/to/clone/JUCE
|
||||
# Configure build with library components only
|
||||
cmake -B cmake-build-install -DCMAKE_INSTALL_PREFIX=/path/to/JUCE/install
|
||||
# Run the installation
|
||||
cmake --build cmake-build-install --target install
|
||||
|
||||
In your project which consumes JUCE, make sure the project CMakeLists.txt contains the line
|
||||
`find_package(JUCE CONFIG REQUIRED)`. This will make the JUCE modules and CMake helper functions
|
||||
available for use in the rest of your build. Then, run the build like so:
|
||||
|
||||
# Go to project directory
|
||||
cd /path/to/my/project
|
||||
# Configure build, passing the JUCE install path you used earlier
|
||||
cmake -B cmake-build -DCMAKE_PREFIX_PATH=/path/to/JUCE/install
|
||||
# Build the project
|
||||
cmake --build cmake-build
|
||||
|
||||
### Example projects
|
||||
|
||||
In the JUCE/examples/CMake directory, you'll find example projects for a GUI app, a console app,
|
||||
and an audio plugin. You can simply copy one of these subdirectories out of the JUCE repo, add JUCE
|
||||
as a submodule, and uncomment the call to `add_subdirectory` where indicated in the CMakeLists.txt.
|
||||
Alternatively, if you've installed JUCE using a package manager or the CMake install target, you can
|
||||
uncomment the call to `find_package`.
|
||||
|
||||
Once your project is set up, you can generate a build tree for it in the normal way. To get started,
|
||||
you might invoke CMake like this, from the new directory you created.
|
||||
|
||||
cmake -Bbuild (-GgeneratorName) (-DJUCE_BUILD_EXTRAS=ON) (-DJUCE_BUILD_EXAMPLES=ON)
|
||||
|
||||
This will create a build tree in a directory named 'build', using the CMakeLists in the current
|
||||
working directory, using the default generator (makefiles on mac/linux, and the most recent Visual
|
||||
Studio on Windows). You can choose a specific generator to use with the `-G` flag (call `cmake -G`
|
||||
to see a full list of generators on your platform). If you included JUCE as a subdirectory, you can
|
||||
enable the Extras and Examples targets by including the last two arguments (they're off by default).
|
||||
There's quite a lot of example projects, and generating project files might take a bit longer when
|
||||
these options are on, so you probably won't want to include them most of the time.
|
||||
|
||||
Then, to build the project:
|
||||
|
||||
cmake --build build (--target targetNameFromCMakeLists) (--config Release/Debug/...)
|
||||
|
||||
This tells cmake to build the target named `targetNameFromCMakeLists`, in the specified
|
||||
configuration, using the appropriate tool. Of course, if you generated makefiles or ninja files, you
|
||||
could call `make` or `ninja` in the build directory. If you generated an IDE project, like an Xcode
|
||||
or Visual Studio project, then you could open the generated project in your IDE.
|
||||
|
||||
### Building for iOS
|
||||
|
||||
Using the Xcode generator is highly recommended, as other generators may not automatically find
|
||||
the correct SDK for the iPhone simulator, and may fail to run certain parts of the build, such as
|
||||
compiling icons and processing the app's plist. By default, CMake will build for the same system
|
||||
that originally configured the project, so to enable cross-compilation for iOS, a few extra flags
|
||||
must be passed to the initial CMake invocation:
|
||||
|
||||
cmake -Bbuild-ios -GXcode -DCMAKE_SYSTEM_NAME=iOS -DCMAKE_OSX_DEPLOYMENT_TARGET=12.0
|
||||
|
||||
Here we create a build tree in the directory named 'build-ios', using the Xcode generator. The
|
||||
`-DCMAKE_SYSTEM_NAME=iOS` option tells CMake to enable cross-compiling for iOS. The
|
||||
`-DCMAKE_OSX_DEPLOYMENT_TARGET=12.0` option sets the minimum deployment target (it applies to iOS
|
||||
despite the 'OSX' in the variable name!).
|
||||
|
||||
Once the project has generated, we can open it as normal in Xcode (look for the project file in the
|
||||
build directory). Alternatively, to build from the command-line, we could run this command:
|
||||
|
||||
cmake --build build-ios --target <targetName> -- -sdk iphonesimulator
|
||||
|
||||
Here, we're building the target named `<targetName>` from the build tree in the directory
|
||||
`build-ios`. All the arguments after `--` are ignored by CMake, and are passed through to the
|
||||
underlying build tool. In this case, the build tool will be `xcodebuild` because we used the Xcode
|
||||
generator above. We tell xcodebuild that we're building the app for the iOS simulator, which doesn't
|
||||
require special code signing.
|
||||
|
||||
If we wanted to build for a real device, we would need to pass some extra signing details to the
|
||||
initial CMake configuration command:
|
||||
|
||||
cmake -Bbuild-ios -GXcode -DCMAKE_SYSTEM_NAME=iOS -DCMAKE_OSX_DEPLOYMENT_TARGET=12.0 \
|
||||
-DCMAKE_XCODE_ATTRIBUTE_CODE_SIGN_IDENTITY="iPhone Developer"
|
||||
-DCMAKE_XCODE_ATTRIBUTE_DEVELOPMENT_TEAM=<10 character id>
|
||||
|
||||
The `CODE_SIGN_IDENTITY` is the kind of certificate you want to use (iPhone Developer is appropriate
|
||||
for development) and `DEVELOPMENT_TEAM` is the 10-character ID that can be found by opening the
|
||||
Keychain Access app, finding your development certificate, and checking its 'Organizational Unit'
|
||||
info field.
|
||||
|
||||
When building the target, you may also need to tell Xcode that it can automatically update
|
||||
provisioning profiles, which is achieved by passing the `-allowProvisioningUpdates` flag:
|
||||
|
||||
cmake --build build-ios --target <targetName> -- -allowProvisioningUpdates
|
||||
|
||||
#### Archiving for iOS
|
||||
|
||||
CMake's out-of-the-box archiving behaviour doesn't always work as expected, especially for targets
|
||||
that depend on custom static libraries. Xcode may generate these libraries into a 'DerivedData'
|
||||
directory, but then omit this directory from the library search paths later in the build.
|
||||
|
||||
If the "Product -> Archive" action isn't working due to missing staticlibs, try setting the
|
||||
`ARCHIVE_OUTPUT_DIRECTORY` property explicitly:
|
||||
|
||||
set_target_properties(my_static_lib_target PROPERTIES ARCHIVE_OUTPUT_DIRECTORY "./")
|
||||
|
||||
Note that the static library produced by `juce_add_binary_data` automatically sets this property.
|
||||
|
||||
### Building universal binaries for macOS
|
||||
|
||||
Building universal binaries that will run on both arm64 and x86_64 can be achieved by
|
||||
configuring the CMake project with `"-DCMAKE_OSX_ARCHITECTURES=arm64;x86_64"`.
|
||||
|
||||
### Building with Clang on Windows
|
||||
|
||||
Clang-cl (Clang with MSVC-like command line) should work by default. If you are generating a Visual
|
||||
Studio project, and have installed the LLVM package which is distributed with Visual Studio, then
|
||||
you can configure a Clang-cl build by passing `-T ClangCL` on your configuration command line.
|
||||
|
||||
If you wish to use Clang with GNU-like command-line instead, you can pass
|
||||
`-DCMAKE_CXX_COMPILER=clang++` and `-DCMAKE_C_COMPILER=clang` on your configuration command line.
|
||||
`clang++` and `clang` must be on your `PATH` for this to work. Only more recent versions of CMake
|
||||
support Clang's GNU-like command-line on Windows. Note that CMake doesn't seem to automatically
|
||||
link a runtime library when building in this configuration, but this can be remedied by setting
|
||||
the `MSVC_RUNTIME_LIBRARY` property. See the [official
|
||||
documentation](https://cmake.org/cmake/help/v3.22/prop_tgt/MSVC_RUNTIME_LIBRARY.html) of this
|
||||
property for usage recommendations.
|
||||
|
||||
### A note about compile definitions
|
||||
|
||||
Module options and plugin options that would previously have been set in the Projucer can be set on
|
||||
a target-by-target basis in CMake, via `target_compile_definitions`. To find the options exposed by
|
||||
a particular module, check its module header for sections with the following structure:
|
||||
|
||||
/** Config: NAME_OF_KEY
|
||||
Docs go here...
|
||||
*/
|
||||
#ifndef NAME_OF_KEY
|
||||
#define NAME_OF_KEY ...
|
||||
#endif
|
||||
|
||||
To override the default config option, use the following CMake code, replacing `<value>` as
|
||||
appropriate:
|
||||
|
||||
target_compile_definitions(my_target PUBLIC NAME_OF_KEY=<value>)
|
||||
|
||||
The `JucePlugin_PreferredChannelConfigurations` preprocessor definition for plugins is difficult to
|
||||
specify in a portable way due to its use of curly braces, which may be misinterpreted in Linux/Mac
|
||||
builds using the Ninja/Makefile generators. It is recommended to avoid this option altogether, and
|
||||
to use the newer buses API to specify the desired plugin inputs and outputs.
|
||||
|
||||
## API Reference
|
||||
|
||||
### Options
|
||||
|
||||
These flags can be enabled or disabled to change the behaviour of parts of the JUCE build.
|
||||
|
||||
These options would normally be configured by either:
|
||||
- Supplying an option in the form `-DNAME_OF_OPTION=ON/OFF` to the initial CMake configuration call,
|
||||
or
|
||||
- Calling `set(NAME_OF_OPTION ON/OFF)` before including JUCE in your project via `add_subdirectory`
|
||||
or `find_package`.
|
||||
|
||||
#### `JUCE_BUILD_EXTRAS`
|
||||
|
||||
This controls whether targets are added for the projects in the 'extras' folder, such as the
|
||||
Projucer and AudioPluginHost. This is off by default, because you probably won't need these targets
|
||||
if you've included JUCE in your own project.
|
||||
|
||||
#### `JUCE_BUILD_EXAMPLES`
|
||||
|
||||
This controls whether targets are added for the projects in the 'examples' folder, such as the
|
||||
DemoRunner and PIPs. This is off by default, because you probably won't need these targets if you've
|
||||
included JUCE in your own project.
|
||||
|
||||
#### `JUCE_ENABLE_MODULE_SOURCE_GROUPS`
|
||||
|
||||
This option will make module source files browsable in IDE projects. It has no effect in non-IDE
|
||||
projects. This option is off by default, as it will increase the size of generated IDE projects and
|
||||
might slow down configuration a bit. If you enable this, you should probably also add
|
||||
`set_property(GLOBAL PROPERTY USE_FOLDERS YES)` to your top level CMakeLists as this is required for
|
||||
source grouping to work.
|
||||
|
||||
Source groupings are a little sensitive to the project layout. As such, you should always ensure
|
||||
that the call to `juce_add_module` which adds a specific module happens *before* calling
|
||||
`juce_add_*` to add any dependent targets.
|
||||
|
||||
The modules will be placed in a group named "JUCE Modules" within the group for each target,
|
||||
alongside the "Source Files" and "Header Files" groups.
|
||||
|
||||
Note: Source groups will only work when all JUCE-dependent targets are created using the
|
||||
`juce_add_*` functions. The standard `add_executable` and `add_library` commands are likely to
|
||||
result in broken builds when source groups are enabled!
|
||||
|
||||
#### `JUCE_COPY_PLUGIN_AFTER_BUILD`
|
||||
|
||||
Controls whether plugin targets should be installed to the system after building. Note that the
|
||||
plugin folders may be protected, so the build may require elevated permissions in order for the
|
||||
installation to work correctly, or you may need to adjust the permissions of the destination
|
||||
folders.
|
||||
|
||||
#### `JUCE_MODULES_ONLY`
|
||||
|
||||
Only brings in targets for the built-in JUCE modules, and the `juce_add_module*` CMake functions.
|
||||
This is meant for highly custom use-cases where the `juce_add_gui_app` and `juce_add_plugin`
|
||||
functions are not required. Most importantly, the `juceaide` helper tool is not built when this
|
||||
option is enabled, which may improve build times for established products that use other methods to
|
||||
handle plugin bundle structures, icons, plists, and so on. If this option is enabled, then
|
||||
`JUCE_ENABLE_MODULE_SOURCE_GROUPS` will have no effect.
|
||||
|
||||
#### `JUCE_WEBVIEW2_PACKAGE_LOCATION`
|
||||
|
||||
You can ask JUCE to link the WebView2 library statically to your target on Windows, by specifying
|
||||
the `NEEDS_WEBVIEW2` option when creating your target. In this case JUCE will search for the
|
||||
WebView2 package on your system. The default search location is
|
||||
`%userprofile%\AppData\Local\PackageManagement\NuGet\Packages`. This location can be overriden by
|
||||
specifying this option. The provided location should contain the `*Microsoft.Web.WebView2*`
|
||||
directory.
|
||||
|
||||
### Functions
|
||||
|
||||
#### `juce_add_<target>`
|
||||
|
||||
juce_add_gui_app(<target> [KEY value]...)
|
||||
juce_add_console_app(<target> [KEY value]...)
|
||||
juce_add_plugin(<target> [KEY value]...)
|
||||
|
||||
`juce_add_gui_app` and `juce_add_console_app` add an executable target with name `<target>`.
|
||||
`juce_add_plugin` adds a 'shared code' static library target with name `<target>`, along with extra
|
||||
targets for each of the specified plugin formats. Each of these functions also takes a number of
|
||||
optional arguments in the form of a `KEY` followed by one or more `value`s which can be used to set
|
||||
additional attributes of the target. If these optional arguments aren't specified, their values will
|
||||
fall back to sensible defaults.
|
||||
|
||||
Each of these arguments adds a property to the resulting target in the form `JUCE_paramName`, where
|
||||
`paramName` is one of the parameter keys below. For example, after a call to
|
||||
`juce_add_gui_app(my_target PRODUCT_NAME "Target")`, the target `my_target` will have a property
|
||||
named `JUCE_PRODUCT_NAME` with the value `"Target"`. After creating a target with one of these
|
||||
commands, properties beginning with `JUCE_` can be _queried_, but changing their values might not
|
||||
have any effect (or might even break things in unexpected ways!), so always pass JUCE target
|
||||
attributes directly to these creation functions, rather than adding them later.
|
||||
|
||||
`PRODUCT_NAME`
|
||||
- The name of the output built by this target, similar to CMake's `OUTPUT_NAME` property. If not
|
||||
specified, this will default to the target name.
|
||||
|
||||
`VERSION`
|
||||
- A version number string in the format "major.minor.bugfix". If not specified, the `VERSION` of
|
||||
the project containing the target will be used instead. On Apple platforms, this is the
|
||||
user-facing version string. This option corresponds to the `CFBundleShortVersionString` field in
|
||||
the target's plist.
|
||||
|
||||
`BUILD_VERSION`
|
||||
- A version number string in the format `major.minor.bugfix`. If not specified, this will match
|
||||
the `VERSION` of the target. On Apple platforms, this is the private version string used to
|
||||
distinguish between App Store builds. This option corresponds to the `CFBundleVersion` field in
|
||||
the target's plist.
|
||||
|
||||
`BUNDLE_ID`
|
||||
- An identifier string in the form `com.yourcompany.productname` which should uniquely identify
|
||||
this target. Mainly used for macOS builds. If not specified, a default will be generated using
|
||||
the target's `COMPANY_NAME` and the name of the CMake target.
|
||||
|
||||
`MICROPHONE_PERMISSION_ENABLED`
|
||||
- May be either `TRUE` or `FALSE`. Adds `NSMicrophoneUsageDescription` to an app's Info.plist.
|
||||
|
||||
`MICROPHONE_PERMISSION_TEXT`
|
||||
- The text your app will display when it requests microphone permissions.
|
||||
|
||||
`CAMERA_PERMISSION_ENABLED`
|
||||
- May be either `TRUE` or `FALSE`. Adds `NSCameraUsageDescription` to an app's Info.plist.
|
||||
|
||||
`CAMERA_PERMISSION_TEXT`
|
||||
- The text your app will display when it requests camera permissions.
|
||||
|
||||
`BLUETOOTH_PERMISSION_ENABLED`
|
||||
- May be either `TRUE` or `FALSE`. Adds `NSBluetoothAlwaysUsageDescription` to an app's Info.plist.
|
||||
|
||||
`BLUETOOTH_PERMISSION_TEXT`
|
||||
- The text your app will display when it requests bluetooth permissions.
|
||||
|
||||
`LOCAL_NETWORK_PERMISSION_ENABLED`
|
||||
- May be either `TRUE` or `FALSE`. Adds `NSLocalNetworkUsageDescription` to an app's Info.plist.
|
||||
|
||||
`LOCAL_NETWORK_PERMISSION_TEXT`
|
||||
- The text your app will display when it requests local network access permissions.
|
||||
|
||||
`SEND_APPLE_EVENTS_PERMISSION_ENABLED`
|
||||
- May be either `TRUE` or `FALSE`. Enable this to allow your app to send Apple events.
|
||||
|
||||
`SEND_APPLE_EVENTS_PERMISSION_TEXT`
|
||||
- The text your app will display when it requests permission to send Apple events.
|
||||
|
||||
`FILE_SHARING_ENABLED`
|
||||
- May be either `TRUE` or `FALSE`. Adds the appropriate entries to an iOS app's Info.plist.
|
||||
|
||||
`DOCUMENT_BROWSER_ENABLED`
|
||||
- May be either `TRUE` or `FALSE`. Adds the appropriate entries to an iOS app's Info.plist.
|
||||
|
||||
`STATUS_BAR_HIDDEN`
|
||||
- May be either `TRUE` or `FALSE`. Adds the appropriate entries to an iOS app's Info.plist.
|
||||
|
||||
`REQUIRES_FULL_SCREEN`
|
||||
- May be either `TRUE` or `FALSE`. Adds the appropriate entries to an iOS app's Info.plist.
|
||||
|
||||
`BACKGROUND_AUDIO_ENABLED`
|
||||
- May be either `TRUE` or `FALSE`. Adds the appropriate entries to an iOS app's Info.plist.
|
||||
|
||||
`BACKGROUND_BLE_ENABLED`
|
||||
- May be either `TRUE` or `FALSE`. Adds the appropriate entries to an iOS app's Info.plist.
|
||||
|
||||
`APP_GROUPS_ENABLED`
|
||||
- May be either `TRUE` or `FALSE`. Adds the appropriate entries to an iOS app's entitlements.
|
||||
|
||||
`APP_GROUP_IDS`
|
||||
- The app groups to which your iOS app belongs. These will be added to your app's entitlements.
|
||||
|
||||
`ICLOUD_PERMISSIONS_ENABLED`
|
||||
- May be either `TRUE` or `FALSE`. Adds the appropriate entries to an iOS app's entitlements.
|
||||
|
||||
`IPHONE_SCREEN_ORIENTATIONS`
|
||||
- May be one or more of `UIInterfaceOrientationUnknown`, `UIInterfaceOrientationPortrait`,
|
||||
`UIInterfaceOrientationPortraitUpsideDown`, `UIInterfaceOrientationLandscapeLeft`, or
|
||||
`UIInterfaceOrientationLandscapeRight`. Adds appropriate entries to an iOS app's plist.
|
||||
Defaults to `UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft
|
||||
UIInterfaceOrientationLandscapeRight`
|
||||
|
||||
`IPAD_SCREEN_ORIENTATIONS`
|
||||
- May be one or more of `UIInterfaceOrientationUnknown`, `UIInterfaceOrientationPortrait`,
|
||||
`UIInterfaceOrientationPortraitUpsideDown`, `UIInterfaceOrientationLandscapeLeft`, or
|
||||
`UIInterfaceOrientationLandscapeRight`. Adds appropriate entries to an iOS app's plist.
|
||||
Defaults to `UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft
|
||||
UIInterfaceOrientationLandscapeRight`
|
||||
|
||||
`LAUNCH_STORYBOARD_FILE`
|
||||
- A custom launch storyboard file to use on iOS. If not supplied, a default storyboard will be
|
||||
used. If this is specified, then this will take precedence over a LaunchImage inside a custom
|
||||
xcassets directory.
|
||||
|
||||
`CUSTOM_XCASSETS_FOLDER`
|
||||
- A path to an xcassets directory, containing icons and/or launch images for this target. If this
|
||||
is specified, the `ICON_BIG` and `ICON_SMALL` arguments will not have an effect on iOS.
|
||||
LaunchImages have been deprecated from iOS 13 onward, but if your xcassets folder contains a
|
||||
LaunchImage and a custom storyboard hasn't been specified, then it will be used.
|
||||
|
||||
`TARGETED_DEVICE_FAMILY`
|
||||
- Specifies the device families on which the product must be capable of running. Allowed values
|
||||
are `1`, `2`, and `1,2`; these correspond to "iPhone/iPod touch", "iPad", and "iPhone/iPod and
|
||||
iPad" respectively. This will default to `1,2`, meaning that the target will target iPhone,
|
||||
iPod, and iPad.
|
||||
|
||||
`ICON_BIG`, `ICON_SMALL`
|
||||
- Paths to image files that will be used to generate app icons. If only one of these parameters
|
||||
is specified, then that image will be used for all icon resolutions. If both arguments are
|
||||
specified, then the appropriate image will be picked for each icon resolution.
|
||||
|
||||
`ICON_COMPOSER_BUNDLE`
|
||||
- An Icon Composer bundle used for MacOS and iOS builds. This argument takes precedence over the
|
||||
ICON_BIG and ICON_SMALL settings with Xcode versions 26 and later. Older versions of Xcode will
|
||||
continue to use ICON_BIG and ICON_SMALL, even if this argument is specified.
|
||||
|
||||
`COMPANY_COPYRIGHT`
|
||||
- Copyright text which will be added to the app/plugin's Info.plist. The value of this argument
|
||||
will be inherited from the `JUCE_COMPANY_COPYRIGHT` property, so if you want to use the same
|
||||
`COMPANY_COPYRIGHT` for several targets in a build tree, you can call
|
||||
`set_directory_properties(PROPERTIES JUCE_COMPANY_COPYRIGHT ...)` after including JUCE but
|
||||
before adding the targets, and then omit the `COMPANY_COPYRIGHT` argument when creating the
|
||||
individual targets.
|
||||
|
||||
`COMPANY_NAME`
|
||||
- The name of this target's author. Will be added to the app/plugin's Info.plist, and may be used
|
||||
to generate part of the `BUNDLE_ID` if no ID was given explicitly. The value of this argument
|
||||
will be inherited from the `JUCE_COMPANY_NAME` property, so if you want to use the same
|
||||
`COMPANY_NAME` for several targets in a build tree, you can call
|
||||
`set_directory_properties(PROPERTIES JUCE_COMPANY_NAME ...)` after including JUCE but before
|
||||
adding the targets, and then omit the `COMPANY_NAME` argument when creating the individual
|
||||
targets.
|
||||
|
||||
`COMPANY_WEBSITE`
|
||||
- The address of a website related to this target in some way. The value of this argument will be
|
||||
inherited from the `JUCE_COMPANY_WEBSITE` property, so if you want to use the same
|
||||
`COMPANY_WEBSITE` for several targets in a build tree, you can call
|
||||
`set_directory_properties(PROPERTIES JUCE_COMPANY_WEBSITE ...)` after including JUCE but before
|
||||
adding the targets, and then omit the `COMPANY_WEBSITE` argument when creating the individual
|
||||
targets.
|
||||
|
||||
`COMPANY_EMAIL`
|
||||
- An email address for this target's author. The value of this argument will be inherited from the
|
||||
`JUCE_COMPANY_EMAIL` property, so if you want to use the same `COMPANY_EMAIL` for several
|
||||
targets in a build tree, you can call `set_directory_properties(PROPERTIES JUCE_COMPANY_EMAIL
|
||||
...)` after including JUCE but before adding the targets, and then omit the `COMPANY_EMAIL`
|
||||
argument when creating the individual targets.
|
||||
|
||||
`DOCUMENT_EXTENSIONS`
|
||||
- File extensions that should be associated with this target. For example, the Projucer passes
|
||||
the string `jucer` because it wants to open `.jucer` files. If your target has several different
|
||||
document types, you can pass them as multiple arguments, e.g. `DOCUMENT_EXTENSIONS wav mp3 aif`.
|
||||
|
||||
`NEEDS_CURL`
|
||||
- On Linux, JUCE may or may not need to link to Curl depending on the compile definitions that are
|
||||
set on a JUCE target. By default, we don't link Curl because you might not need it, but if you
|
||||
get linker or include errors that reference Curl, just set this argument to `TRUE`.
|
||||
|
||||
`NEEDS_WEB_BROWSER`
|
||||
- On Linux, JUCE may or may not need to link to Webkit depending on the compile definitions that
|
||||
are set on a JUCE target. By default, we don't link Webkit because you might not need it, but
|
||||
if you get linker or include errors that reference Webkit, just set this argument to `TRUE`.
|
||||
|
||||
`NEEDS_OPENGL_ES`
|
||||
- On Linux, set this to `TRUE` to build `juce_opengl` against OpenGL ES rather than desktop OpenGL.
|
||||
This sets `JUCE_OPENGL_ES=1` on the target and links the `egl` and `glesv2` pkg-config packages,
|
||||
which is what you need on systems whose graphics drivers only provide OpenGL ES, such as many
|
||||
embedded Arm boards. It has no effect on other platforms: iOS and Android always use OpenGL ES,
|
||||
and macOS and Windows never do.
|
||||
|
||||
`NEEDS_WEBVIEW2`
|
||||
- On Windows, JUCE may or may not need to link to WebView2 depending on the compile definitions that
|
||||
are set on a JUCE target. By default, we don't link WebView2 because you might not need it, but
|
||||
if you get linker or include errors that reference WebView2, just set this argument to `TRUE`.
|
||||
|
||||
`NEEDS_STORE_KIT`
|
||||
- On macOS, JUCE may or may not need to link to StoreKit depending on the compile definitions that
|
||||
are set on a JUCE target. By default, we don't link StoreKit because you might not need it, but
|
||||
if you get linker or include errors that reference StoreKit, just set this argument to `TRUE`.
|
||||
|
||||
`NEEDS_WINDOWS_MIDI_SERVICES`
|
||||
- On Windows, JUCE can use the Windows MIDI Services library to support MIDI 2.0 protocol
|
||||
communications with hardware and other applications. By default this is not enabled because the
|
||||
MIDI services require additional packages to be installed in order to function, both at build-time
|
||||
and at run-time. If you enable this flag but don't have the correct dependencies installed, CMake
|
||||
will emit an error message during configuration explaining how to get everything set up. This
|
||||
option will automatically set the JUCE_USE_WINDOWS_MIDI_SERVICES=1 preprocessor definition on the
|
||||
new target.
|
||||
|
||||
`PUSH_NOTIFICATIONS_ENABLED`
|
||||
- Sets app entitlements to allow push notifications. May be either `TRUE`
|
||||
or `FALSE`. Defaults to `FALSE`.
|
||||
|
||||
`NETWORK_MULTICAST_ENABLED`
|
||||
- Sets app entitlements to allow IP multicast or broadcast on macOS/iOS. May be either `TRUE`
|
||||
or `FALSE`. Defaults to `FALSE`.
|
||||
|
||||
`HARDENED_RUNTIME_ENABLED`
|
||||
- Enables macOS' hardened runtime for this target. Required for notarisation. May be either
|
||||
`TRUE` or `FALSE`. Defaults to `FALSE`.
|
||||
|
||||
`HARDENED_RUNTIME_OPTIONS`
|
||||
- A set of space-separated entitlement keys that will be added to this target's entitlements
|
||||
plist if `HARDENED_RUNTIME_ENABLED` is `TRUE`. Each key should be in the form
|
||||
`com.apple.security.*` where `*` is a specific entitlement.
|
||||
|
||||
`APP_SANDBOX_ENABLED`
|
||||
- Enables macOS' app sandbox for this target. May be either `TRUE` or `FALSE`. Defaults to `FALSE`.
|
||||
|
||||
`APP_SANDBOX_INHERIT`
|
||||
- Allows child processes to inherit the static entitlements of their parent process. If this
|
||||
is set to `TRUE`, no other app sandbox entitlements will be set on this target. Defaults to
|
||||
`FALSE`.
|
||||
|
||||
`APP_SANDBOX_OPTIONS`
|
||||
- A set of space-separated entitlement keys that will be added to this target's entitlements
|
||||
plist if `APP_SANDBOX_ENABLED` is `TRUE`. Each key should be in the form `com.apple.security.*`
|
||||
where `*` is a specific entitlement.
|
||||
|
||||
`APP_SANDBOX_FILE_ACCESS_HOME_RO`
|
||||
- A set of space-separated paths that will be added to this target's entitlements plist for
|
||||
accessing read-only paths relative to the home directory if `APP_SANDBOX_ENABLED` is `TRUE`.
|
||||
|
||||
`APP_SANDBOX_FILE_ACCESS_HOME_RW`
|
||||
- A set of space-separated paths that will be added to this target's entitlements plist for
|
||||
accessing read/write paths relative to the home directory if `APP_SANDBOX_ENABLED` is `TRUE`.
|
||||
|
||||
`APP_SANDBOX_FILE_ACCESS_ABS_RO`
|
||||
- A set of space-separated paths that will be added to this target's entitlements plist for
|
||||
accessing read-only absolute paths if `APP_SANDBOX_ENABLED` is `TRUE`.
|
||||
|
||||
`APP_SANDBOX_FILE_ACCESS_ABS_RW`
|
||||
- A set of space-separated paths that will be added to this target's entitlements plist for
|
||||
accessing read/write absolute paths if `APP_SANDBOX_ENABLED` is `TRUE`.
|
||||
|
||||
`APP_SANDBOX_EXCEPTION_IOKIT`
|
||||
- A set of space-separated strings specifying IOUserClient subclasses to open or to set properties
|
||||
on. These will be added to this target's entitlements plist if `APP_SANDBOX_ENABLED` is `TRUE`.
|
||||
For more information see Apple's IOKit User Client Class Temporary Exception documentation.
|
||||
|
||||
`PLIST_TO_MERGE`
|
||||
- A string to insert into an app/plugin's Info.plist.
|
||||
|
||||
`FORMATS`
|
||||
- For plugin targets, specifies the plugin targets to build. Should be provided as a space-separated
|
||||
list. Valid values are `Standalone Unity VST3 AU AUv3 AAX VST LV2`. `AU` and `AUv3` plugins will
|
||||
only be enabled when building on macOS; `AUv3` plugins will only be enabled when using the Xcode
|
||||
generator. It is an error to pass `VST` without first calling `juce_set_vst2_sdk_path`.
|
||||
|
||||
`PLUGIN_NAME`
|
||||
- The name of the plugin. In a DAW environment, this is the name that will be displayed to the
|
||||
user when they go to load a plugin. This name may differ from the name of the physical plugin
|
||||
file (to set the name of the plugin file, use the `PRODUCT_NAME` option). If not specified,
|
||||
the `PLUGIN_NAME` will default to match the `PRODUCT_NAME`.
|
||||
|
||||
`PLUGIN_MANUFACTURER_CODE`
|
||||
- A four-character unique ID for your company. For AU compatibility, this must contain at least
|
||||
one upper-case letter. GarageBand 10.3 requires the first letter to be upper-case, and the
|
||||
remaining letters to be lower-case. Defaults to `Manu`.
|
||||
|
||||
`PLUGIN_CODE`
|
||||
- A four-character unique ID for your plugin. For AU compatibility, this must contain exactly one
|
||||
upper-case letter. GarageBand 10.3 requires the first letter to be upper-case, and the remaining
|
||||
letters to be lower-case. Defaults to a random code that changes each time the build is
|
||||
configured.
|
||||
|
||||
`DESCRIPTION`
|
||||
- A short description of your plugin.
|
||||
|
||||
`IS_SYNTH`
|
||||
- Whether the plugin is a synth. Will be used to set sensible plugin category values if they
|
||||
are not provided explicitly. May be either `TRUE` or `FALSE`. Defaults to `FALSE`.
|
||||
|
||||
`NEEDS_MIDI_INPUT`
|
||||
- Whether the plugin should provide a midi input. May be either `TRUE` or `FALSE`. Defaults to
|
||||
`FALSE`.
|
||||
|
||||
`NEEDS_MIDI_OUTPUT`
|
||||
- Whether the plugin should provide a midi output. May be either `TRUE` or `FALSE`. Defaults to
|
||||
`FALSE`.
|
||||
|
||||
`IS_MIDI_EFFECT`
|
||||
- Whether the plugin is a MIDI effect (some hosts provide a special channel-strip location for
|
||||
MIDI effect plugins). May be either `TRUE` or `FALSE`. Defaults to `FALSE`.
|
||||
|
||||
`EDITOR_WANTS_KEYBOARD_FOCUS`
|
||||
- Whether the plugin requires keyboard focus, or should defer all keyboard handling to the host.
|
||||
May be either `TRUE` or `FALSE`. Defaults to `FALSE`.
|
||||
|
||||
`DISABLE_AAX_BYPASS`
|
||||
- Whether the AAX bypass function should be disabled. May be either `TRUE` or `FALSE`. Defaults to
|
||||
`FALSE`.
|
||||
|
||||
`DISABLE_AAX_MULTI_MONO`
|
||||
- Whether the AAX multi mono bus layout should be disabled. May be either `TRUE` or `FALSE`.
|
||||
Defaults to `FALSE`.
|
||||
|
||||
`AAX_IDENTIFIER`
|
||||
- The bundle ID for the AAX plugin target. Defaults to the `BUNDLE_ID`.
|
||||
|
||||
`LV2URI`
|
||||
- This is a string that acts as a unique identifier for an LV2 plugin. If you make any incompatible
|
||||
changes to your plugin (remove parameters, reorder parameters, change preset format etc.) you MUST
|
||||
change this value. LV2 hosts will assume that any plugins with the same URI are interchangeable.
|
||||
By default, the value of this property will be generated based on the `COMPANY_WEBSITE` and
|
||||
`PLUGIN_NAME`. However, in some circumstances, such as the following, you'll need to override the
|
||||
default:
|
||||
- The plugin name contains characters such as spaces that are invalid in a URI; or
|
||||
- The `COMPANY_WEBSITE` omits the leading scheme identifier (`http://`); or
|
||||
- There's no website associated with the plugin, so you want to use a `urn:` identifier instead.
|
||||
|
||||
`VST_NUM_MIDI_INS`
|
||||
- For VST2 and VST3 plugins that accept midi, this allows you to configure the number of inputs.
|
||||
Defaults to `16`.
|
||||
|
||||
`VST_NUM_MIDI_OUTS`
|
||||
- For VST2 and VST3 plugins that produce midi, this allows you to configure the number of outputs.
|
||||
Defaults to `16`.
|
||||
|
||||
`VST2_CATEGORY`
|
||||
- Should be one of: `kPlugCategUnknown`, `kPlugCategEffect`, `kPlugCategSynth`,
|
||||
`kPlugCategAnalysis`, `kPlugCategMastering`, `kPlugCategSpacializer`, `kPlugCategRoomFx`,
|
||||
`kPlugSurroundFx`, `kPlugCategRestoration`, `kPlugCategOfflineProcess`, `kPlugCategShell`,
|
||||
`kPlugCategGenerator`. Defaults to `kPlugCategSynth` if `IS_SYNTH` is `TRUE`. Otherwise defaults
|
||||
to `kPlugCategEffect`.
|
||||
|
||||
`LV2_PLUGIN_CLASS`
|
||||
- Should be set to the name of one of the Plugin classes found at
|
||||
https://lv2plug.in/ns/lv2core#Plugin. Defaults to "InstrumentPlugin" for synth plugins, and
|
||||
"Plugin" otherwise.
|
||||
|
||||
`VST3_CATEGORIES`
|
||||
- Should be one or more, separated by spaces, of the following: `Fx`, `Instrument`, `Analyzer`,
|
||||
`Delay`, `Distortion`, `Drum`, `Dynamics`, `EQ`, `External`, `Filter`, `Generator`, `Mastering`,
|
||||
`Modulation`, `Mono`, `Network`, `NoOfflineProcess`, `OnlyOfflineProcess`, `OnlyRT`, `Pitch
|
||||
Shift`, `Restoration`, `Reverb`, `Sampler`, `Spatial`, `Stereo`, `Surround`, `Synth`, `Tools`,
|
||||
`Up-Downmix`. Defaults to `Instrument Synth` if `IS_SYNTH` is `TRUE`. Otherwise defaults to
|
||||
`Fx`.
|
||||
|
||||
`AU_MAIN_TYPE`
|
||||
- Should be one of: `kAudioUnitType_Effect`, `kAudioUnitType_FormatConverter`,
|
||||
`kAudioUnitType_Generator`, `kAudioUnitType_MIDIProcessor`, `kAudioUnitType_Mixer`,
|
||||
`kAudioUnitType_MusicDevice`, `kAudioUnitType_MusicEffect`, `kAudioUnitType_OfflineEffect`,
|
||||
`kAudioUnitType_Output`, `kAudioUnitType_Panner`
|
||||
|
||||
`AU_EXPORT_PREFIX`
|
||||
- A prefix for the names of entry-point functions that your component exposes. Typically this
|
||||
will be a version of your plugin's name that can be used as part of a C++ token. Defaults
|
||||
to your plugin's name with the suffix `AU`.
|
||||
|
||||
`AU_SANDBOX_SAFE`
|
||||
- Adds the appropriate entries to an AU plugin's Info.plist. May be either `TRUE` or `FALSE`.
|
||||
Defaults to `FALSE`. If this is `TRUE` then `SUPPRESS_AU_PLIST_RESOURCE_USAGE` has no effect.
|
||||
|
||||
`SUPPRESS_AU_PLIST_RESOURCE_USAGE`
|
||||
- May be either `TRUE` or `FALSE`. Defaults to `FALSE`. Set this to `TRUE` to disable the
|
||||
`resourceUsage` key in the target's plist. This is useful for AU plugins that must access
|
||||
resources which cannot be declared in the resourceUsage block, such as UNIX domain sockets. In
|
||||
particular, PACE-protected AU plugins may require this option to be enabled in order for the
|
||||
plugin to load in GarageBand. This option has no effect if `AU_SANDBOX_SAFE` is set to `TRUE`.
|
||||
|
||||
`AAX_CATEGORY`
|
||||
- Should be one or more of: `None`, `EQ`, `Dynamics`, `PitchShift`, `Reverb`, `Delay`, `Modulation`,
|
||||
`Harmonic`, `NoiseReduction`, `Dither`, `SoundField`, `HWGenerators`, `SWGenerators`,
|
||||
`WrappedPlugin`, `Effect`, and `MIDIEffect`. You may also add the prefix `AAX_ePlugInCategory_`.
|
||||
Defaults to `MIDIEffect` when `IS_MIDI_EFFECT` is `TRUE`, `SWGenerators` when `IS_SYNTH` is
|
||||
`TRUE`, otherwise `None`.
|
||||
|
||||
`PLUGINHOST_AU`
|
||||
- May be either `TRUE` or `FALSE`. Defaults to `FALSE`. If `TRUE`, will add the preprocessor
|
||||
definition `JUCE_PLUGINHOST_AU=1` to the new target, and will link the macOS frameworks necessary
|
||||
for hosting plugins. Using this parameter should be preferred over using
|
||||
`target_compile_definitions` to manually set the `JUCE_PLUGINHOST_AU` preprocessor definition.
|
||||
|
||||
`USE_LEGACY_COMPATIBILITY_PLUGIN_CODE`
|
||||
- May be either `TRUE` or `FALSE`. Defaults to `FALSE`. If `TRUE`, the preprocessor definition
|
||||
`JucePlugin_ManufacturerCode` will be set to the hex equivalent of `proj`. This option exists to
|
||||
maintain compatibility with a previous, buggy version of JUCE's CMake support which mishandled the
|
||||
manufacturer code property. Most projects should leave this option set to its default value.
|
||||
|
||||
`COPY_PLUGIN_AFTER_BUILD`
|
||||
- Whether or not to install the plugin to the current system after building. May be either
|
||||
`TRUE` or `FALSE`. Defaults to `FALSE`. If you want all of the plugins in a subdirectory to be
|
||||
installed automatically after building, you can set the property `JUCE_COPY_PLUGIN_AFTER_BUILD`
|
||||
on the directory before adding the plugins, rather than setting this argument on each individual
|
||||
target. Note that on Windows, the default install locations may not be writable by normal user
|
||||
accounts.
|
||||
|
||||
`VST_COPY_DIR`
|
||||
- The location to which VST2 (legacy) plugins will be copied after building if
|
||||
`COPY_PLUGIN_AFTER_BUILD` is set on this target. If you want to install all of the VST2 plugins
|
||||
in a subdirectory to a non-default location, you can set the `JUCE_VST_COPY_DIR` property on
|
||||
the directory before adding the plugin targets, rather than setting this argument on each
|
||||
individual target.
|
||||
|
||||
`VST3_COPY_DIR`
|
||||
- The location to which VST3 plugins will be copied after building if `COPY_PLUGIN_AFTER_BUILD`
|
||||
is set on this target. If you want to install all of the VST3 plugins in a subdirectory to a
|
||||
non-default location, you can set the `JUCE_VST3_COPY_DIR` property on the directory before
|
||||
adding the plugin targets, rather than setting this argument on each individual target.
|
||||
|
||||
`AAX_COPY_DIR`
|
||||
- The location to which AAX plugins will be copied after building if `COPY_PLUGIN_AFTER_BUILD`
|
||||
is set on this target. If you want to install all of the AAX plugins in a subdirectory to a
|
||||
non-default location, you can set the `JUCE_AAX_COPY_DIR` property on the directory before
|
||||
adding the plugin targets, rather than setting this argument on each individual target.
|
||||
|
||||
`AU_COPY_DIR`
|
||||
- The location to which AU plugins will be copied after building if `COPY_PLUGIN_AFTER_BUILD`
|
||||
is set on this target. If you want to install all of the AU plugins in a subdirectory to a
|
||||
non-default location, you can set the `JUCE_AU_COPY_DIR` property on the directory before
|
||||
adding the plugin targets, rather than setting this argument on each individual target.
|
||||
|
||||
`UNITY_COPY_DIR`
|
||||
- The location to which Unity plugins will be copied after building if `COPY_PLUGIN_AFTER_BUILD`
|
||||
is set on this target. If you want to install all of the Unity plugins in a subdirectory to a
|
||||
non-default location, you can set the `JUCE_UNITY_COPY_DIR` property on the directory before
|
||||
adding the plugin targets, rather than setting this argument on each individual target.
|
||||
Unlike the other `COPY_DIR` arguments, this argument does not have a default value so be sure
|
||||
to set it if you have enabled `COPY_PLUGIN_AFTER_BUILD` and the `Unity` format.
|
||||
|
||||
`IS_ARA_EFFECT`
|
||||
- May be either `TRUE` or `FALSE`. Defaults to `FALSE`. If `TRUE` it enables additional codepaths in
|
||||
the VST3 and AU plugin wrappers allowing compatible hosts to load the plugin with additional ARA
|
||||
functionality. It will also add the preprocessor definition `JucePlugin_Enable_ARA=1`, which can
|
||||
be used in preprocessor conditions inside the plugin code. You should not add this definition
|
||||
using `target_compile_definitions` manually.
|
||||
|
||||
`ARA_FACTORY_ID`
|
||||
- A globally unique and versioned identifier string. If not provided a sensible default will be
|
||||
generated using the `BUNDLE_ID` and `VERSION` values. The version must be updated if e.g. the
|
||||
plugin's (compatible) document archive ID(s) or its analysis or playback transformation
|
||||
capabilities change.
|
||||
|
||||
`ARA_DOCUMENT_ARCHIVE_ID`
|
||||
- Identifier string for document archives created by the document controller. This ID must be
|
||||
globally unique and is shared only amongst document controllers that create the same archives and
|
||||
produce the same render results based upon the same input data. This means that the ID must be
|
||||
updated if the archive format changes in any way that is no longer downwards compatible. If not
|
||||
provided a version independent default will be created that is only appropriate as long as the
|
||||
format remains unchanged.
|
||||
|
||||
`ARA_ANALYSIS_TYPES`
|
||||
- Defaults to having no analyzable types. Should be one or more of the following values if the
|
||||
document controller has the corresponding analysis capability: `kARAContentTypeNotes`,
|
||||
`kARAContentTypeTempoEntries`, `kARAContentTypeBarSignatures`, `kARAContentTypeStaticTuning `,
|
||||
`kARAContentTypeKeySignatures`, `kARAContentTypeSheetChords`.
|
||||
|
||||
`ARA_TRANSFORMATION_FLAGS`
|
||||
- Defaults to `kARAPlaybackTransformationNoChanges`. If the document controller has the ability to
|
||||
provide the corresponding change it should be one or more of:
|
||||
`kARAPlaybackTransformationTimestretch`, `kARAPlaybackTransformationTimestretchReflectingTempo`,
|
||||
`kARAPlaybackTransformationContentBasedFadeAtTail`,
|
||||
`kARAPlaybackTransformationContentBasedFadeAtHead`.
|
||||
|
||||
`VST3_AUTO_MANIFEST`
|
||||
- May be either `TRUE` or `FALSE`. Defaults to `TRUE`. When `TRUE`, a `POST_BUILD` step will be
|
||||
added to the VST3 target which will generate a `moduleinfo.json` file into the Resources
|
||||
subdirectory of the plugin bundle. This is normally desirable, but does require that the plugin
|
||||
can be successfully loaded immediately after building the VST3 target. If the plugin needs further
|
||||
processing before it can be loaded (e.g. custom signing), then set this option to FALSE to disable
|
||||
the automatic manifest generation. To generate the manifest at a later point in the build, use the
|
||||
`juce_enable_vst3_manifest_step` function. It is strongly recommended to generate a manifest for
|
||||
your plugin, as this allows compatible hosts to scan the plugin much more quickly, leading to
|
||||
an improved experience for users.
|
||||
|
||||
#### `juce_add_binary_data`
|
||||
|
||||
juce_add_binary_data(<name>
|
||||
[HEADER_NAME ...]
|
||||
[NAMESPACE ...]
|
||||
SOURCES ...)
|
||||
|
||||
Create a static library that embeds the contents of the files passed as arguments to this function.
|
||||
Adds a library target called `<name>` which can be linked into other targets using
|
||||
`target_link_libraries`.
|
||||
|
||||
The `HEADER_NAME` argument is optional. If provided, the generated header will be given the
|
||||
requested name, otherwise the generated header will be named "BinaryData.h". In completely new
|
||||
projects, you should provide a unique name here, so that projects containing more than one binary
|
||||
data target are able to include the binary data headers without ambiguity.
|
||||
|
||||
The `NAMESPACE` argument is also optional. If not provided, the generated files will use the default
|
||||
namespace `BinaryData`. Each of the files located at the paths following `SOURCES` will be encoded
|
||||
and embedded in the resulting static library. This library can be linked as normal using
|
||||
`target_link_libraries(<otherTarget> PRIVATE <name>)`, and the header can be included using
|
||||
`#include <BinaryData.h>`.
|
||||
|
||||
#### `juce_add_bundle_resources_directory`
|
||||
|
||||
juce_add_bundle_resources_directory(<target> <folder>)
|
||||
|
||||
Copy the entire directory at the location `<folder>` into an Apple bundle's resource directory, i.e.
|
||||
the `Resources` directory for a macOS bundle, and the top-level directory of an iOS bundle.
|
||||
|
||||
#### `juce_generate_juce_header`
|
||||
|
||||
juce_generate_juce_header(<target>)
|
||||
|
||||
Introspects the JUCE modules that have been linked to `<target>` and generates a `JuceHeader.h`
|
||||
which contains `#include` statements for each of the module headers. This header also contains an
|
||||
optional `using namespace juce` statement, and an optional `ProjectInfo` block, each of which can be
|
||||
disabled by setting the compile definitions `DONT_SET_USING_JUCE_NAMESPACE` and
|
||||
`JUCE_DONT_DECLARE_PROJECTINFO` respectively. The resulting header can be included with `#include
|
||||
<JuceHeader.h>`. In plain CMake projects which don't require Projucer compatibility, the use of
|
||||
JuceHeader.h is optional. Instead, module headers can be included directly in source files that
|
||||
require them.
|
||||
|
||||
#### `juce_enable_copy_plugin_step`
|
||||
|
||||
juce_enable_copy_plugin_step(<target>)
|
||||
|
||||
As an alternative to the JUCE_COPY_PLUGIN_AFTER_BUILD property, you may call this function to
|
||||
manually enable post-build copy on a plugin. The argument to this function should be a target
|
||||
previously created with `juce_add_plugin`.
|
||||
|
||||
JUCE_COPY_PLUGIN_AFTER_BUILD will cause plugins to be installed immediately after building. This is
|
||||
not always appropriate, if extra build steps (such as signing or modifying the plugin bundle) must
|
||||
be executed before the install. In such cases, you should leave JUCE_COPY_PLUGIN_AFTER_BUILD
|
||||
disabled, use `add_custom_command(TARGET POST_BUILD)` to add your own post-build steps, and then
|
||||
finally call `juce_enable_copy_plugin_step`.
|
||||
|
||||
If your custom build steps need to use the location of the plugin artefact, you can extract this
|
||||
by querying the property `JUCE_PLUGIN_ARTEFACT_FILE` on a plugin target (*not* the shared code
|
||||
target!).
|
||||
|
||||
#### `juce_enable_vst3_manifest_step`
|
||||
|
||||
juce_enable_vst3_manifest_step(<target>)
|
||||
|
||||
You may call this function to manually enable VST3 manifest generation on a plugin. The argument to
|
||||
this function should be a target previously created with `juce_add_plugin`.
|
||||
|
||||
`VST3_AUTO_MANIFEST TRUE` will cause the VST3 manifest to be generated immediately after building.
|
||||
This is not always appropriate, if extra build steps (such as signing or modifying the plugin
|
||||
bundle) must be executed before the plugin can be loaded. In such cases, you should set
|
||||
`VST3_AUTO_MANIFEST FALSE`, use `add_custom_command(TARGET POST_BUILD)` to add your own post-build
|
||||
steps, and then finally call `juce_enable_vst3_manifest_step`.
|
||||
|
||||
#### `juce_set_<kind>_sdk_path`
|
||||
|
||||
juce_set_aax_sdk_path(<absolute path>)
|
||||
juce_set_vst2_sdk_path(<absolute path>)
|
||||
juce_set_vst3_sdk_path(<absolute path>)
|
||||
juce_set_ara_sdk_path(<absolute path>)
|
||||
|
||||
Call these functions from your CMakeLists to set up your local AAX, VST2, VST3 and ARA SDKs. These
|
||||
functions should be called *before* adding any targets that may depend on the AAX/VST2/VST3/ARA SDKs
|
||||
(plugin hosts, AAX/VST2/VST3/ARA plugins etc.).
|
||||
|
||||
#### `juce_add_module`
|
||||
|
||||
juce_add_module(<path to module>)
|
||||
juce_add_modules(<names of module>...)
|
||||
|
||||
`juce_add_module` adds a library target for the JUCE module located at the provided path. `<path>`
|
||||
must be the path to a module directory (e.g. /Users/me/JUCE/modules/juce_core). This will add an
|
||||
interface library with a name matching the directory name of the module. The resulting library can
|
||||
be linked to other targets as normal, using `target_link_libraries`.
|
||||
|
||||
Due to the way that `INTERFACE` libraries work in CMake, linking to a module added in this way
|
||||
*must* be done using `PRIVATE` visibility. Using `PUBLIC` will cause the module sources to be added
|
||||
both to the target's `SOURCES` and `INTERFACE_SOURCES`, which may result in many copies of the
|
||||
module being built into a single target, which would cause build failures in the best case and
|
||||
silent ODR violations in the worst case. Scary stuff!
|
||||
|
||||
This command has a few optional arguments: `INSTALL_PATH` is a path, relative to the install prefix,
|
||||
to which the module sources will be copied during installation of the module. ALIAS_NAMESPACE will
|
||||
add an alias for the module target(s) with the provided namespace. For example, the following
|
||||
invocation will add a module target named `my_module`, along with an alias named
|
||||
`company::my_module`. ``` juce_add_module(my_module ALIAS_NAMESPACE company)` ```
|
||||
|
||||
`juce_add_modules` is a convenience function that can be used to add multiple JUCE modules at once.
|
||||
This version accepts many module paths, rather than just one. For an example of usage, see the
|
||||
CMakeLists in the `modules` directory.
|
||||
|
||||
#### `juce_add_pip`
|
||||
|
||||
juce_add_pip(<header>)
|
||||
|
||||
This function parses the PIP metadata block in the provided header, and adds appropriate build
|
||||
targets for a console app, GUI app, or audio plugin. For audio plugin targets, it builds as many
|
||||
plugin formats as possible. To build VST2 targets, call `juce_set_vst2_sdk_path` *before* calling
|
||||
`juce_add_pip`.
|
||||
|
||||
This is mainly provided to build the built-in example projects in the JUCE repo, and for building
|
||||
quick proof-of-concept demo apps with minimal set-up. For any use-case more complex than a
|
||||
proof-of-concept, you should prefer the `juce_add_gui_app`, `juce_add_plugin`, or
|
||||
`juce_add_console_app` functions, which provide more fine-grained control over the properties of
|
||||
your target.
|
||||
|
||||
#### `juce_disable_default_flags`
|
||||
|
||||
juce_disable_default_flags()
|
||||
|
||||
This function sets the `CMAKE_<LANG>_FLAGS_<MODE>` to empty in the current directory and below,
|
||||
allowing alternative optimisation/debug flags to be supplied without conflicting with the
|
||||
CMake-supplied defaults.
|
||||
|
||||
#### `juce_link_with_embedded_linux_subprocess`
|
||||
|
||||
juce_link_with_embedded_linux_subprocess(<target>)
|
||||
|
||||
This function links the provided target with an interface library that generates a barebones
|
||||
standalone executable file and embeds it as a binary resource. This binary resource is only used
|
||||
by the `juce_gui_extra` module and only when its `JUCE_WEB_BROWSER` capability is enabled. This
|
||||
executable will then be deployed into a temporary file only when the code is running in a
|
||||
non-standalone format, and will be used to host a WebKit view. This technique is used by audio
|
||||
plugins on Linux.
|
||||
|
||||
This function is automatically called if necessary for all targets created by one of the JUCE target
|
||||
creation functions i.e. `juce_add_gui_app`, `juce_add_console_app` and `juce_add_gui_app`. You don't
|
||||
need to call this function manually in these cases.
|
||||
|
||||
### Targets
|
||||
|
||||
#### `juce::juce_recommended_warning_flags`
|
||||
|
||||
target_link_libraries(myTarget PUBLIC juce::juce_recommended_warning_flags)
|
||||
|
||||
This is a target which can be linked to other targets using `target_link_libraries`, in order to
|
||||
enable the recommended JUCE warnings when building them.
|
||||
|
||||
This target just sets compiler and linker flags, and doesn't have any associated libraries or
|
||||
include directories. When building plugins, it's probably desirable to link this to the shared code
|
||||
target with `PUBLIC` visibility, so that all the plugin wrappers inherit the same compile/link
|
||||
flags.
|
||||
|
||||
#### `juce::juce_recommended_config_flags`
|
||||
|
||||
target_link_libraries(myTarget PUBLIC juce::juce_recommended_config_flags)
|
||||
|
||||
This is a target which can be linked to other targets using `target_link_libraries`, in order to
|
||||
enable the recommended JUCE optimisation and debug flags.
|
||||
|
||||
This target just sets compiler and linker flags, and doesn't have any associated libraries or
|
||||
include directories. When building plugins, it's probably desirable to link this to the shared code
|
||||
target with `PUBLIC` visibility, so that all the plugin wrappers inherit the same compile/link
|
||||
flags.
|
||||
|
||||
#### `juce::juce_recommended_lto_flags`
|
||||
|
||||
target_link_libraries(myTarget PUBLIC juce::juce_recommended_lto_flags)
|
||||
|
||||
This is a target which can be linked to other targets using `target_link_libraries`, in order to
|
||||
enable the recommended JUCE link time optimisation settings.
|
||||
|
||||
This target just sets compiler and linker flags, and doesn't have any associated libraries or
|
||||
include directories. When building plugins, it's probably desirable to link this to the shared code
|
||||
target with `PUBLIC` visibility, so that all the plugin wrappers inherit the same compile/link
|
||||
flags.
|
||||
|
||||
+235
@@ -0,0 +1,235 @@
|
||||
# The JUCE Module Format
|
||||
|
||||
A JUCE module is a collection of header and source files which can be added to a project
|
||||
to provide a set of classes and libraries or related functionality.
|
||||
|
||||
Their structure is designed to make it as simple as possible for modules to be added to
|
||||
user projects on many platforms, either via automated tools, or by manual inclusion.
|
||||
|
||||
Each module may have dependencies on other modules, but should be otherwise self-contained.
|
||||
|
||||
## File structure
|
||||
|
||||
Each module lives inside a folder whose name is the same as the name of the module. The
|
||||
JUCE convention for naming modules is lower-case with underscores, e.g.
|
||||
|
||||
juce_core
|
||||
juce_events
|
||||
juce_graphics
|
||||
|
||||
But any name that is a valid C++ identifier is OK.
|
||||
|
||||
Inside the root of this folder, there must be a set of public header and source files which
|
||||
the user's' project will include. The module may have as many other internal source files as
|
||||
it needs, but these must all be inside sub-folders!
|
||||
|
||||
|
||||
### Main header file
|
||||
|
||||
In this root folder there must be ONE main header file, which includes all the necessary
|
||||
header files for the module. This header must have the same name as the module, with
|
||||
a .h/.hpp/.hxx suffix. E.g.
|
||||
|
||||
juce_core/juce_core.h
|
||||
|
||||
IMPORTANT! All code within a module that includes other files from within its own subfolders
|
||||
must do so using RELATIVE paths!
|
||||
A module must be entirely relocatable on disk, and it must not rely on the user's project
|
||||
having any kind of include path set up correctly for it to work. Even if the user has no
|
||||
include paths whatsoever and includes the module's main header via an absolute path,
|
||||
it must still correctly find all of its internally included sub-files.
|
||||
|
||||
This main header file must also contain a comment with a BEGIN_JUCE_MODULE_DECLARATION
|
||||
block which defines the module's requirements - the syntax for this is described later on..
|
||||
|
||||
|
||||
### Module CPP files
|
||||
|
||||
A module consists of a single header file and zero or more .cpp files. Fewer is better!
|
||||
|
||||
Ideally, a module could be header-only module, so that a project can use it by simply
|
||||
including the main header file.
|
||||
|
||||
For various reasons it's usually necessary or preferable to have a simpler header and
|
||||
some .cpp files that the user's project should compile as stand-alone compile units.
|
||||
In this case you should ideally provide just a single cpp file in the module's root
|
||||
folder, and this should internally include all your other cpps from their sub-folders,
|
||||
so that only a single cpp needs to be added to the user's project in order to completely
|
||||
compile the module.
|
||||
|
||||
In some cases (e.g. if your module internally relies on 3rd-party code which can't be
|
||||
easily combined into a single compile-unit) then you may have more than one source file
|
||||
here, but avoid this if possible, as it will add a burden for users who are manually
|
||||
adding these files to their projects.
|
||||
|
||||
The names of these source files must begin with the name of the module, but they can have
|
||||
a number or other suffix if there is more than one.
|
||||
|
||||
In order to specify that a source file should only be compiled for a specific platform,
|
||||
then the filename can be suffixed with one of the following (case insensitive) strings:
|
||||
|
||||
_mac or _osx <- compiled for macOS and OSX platforms only
|
||||
_windows <- compiled for Windows platforms only
|
||||
_linux <- compiled for Linux and FreeBSD platforms only
|
||||
_android <- compiled for Android platforms only
|
||||
_ios <- compiled for iOS platforms only
|
||||
|
||||
e.g.
|
||||
|
||||
juce_mymodule/juce_mymodule_1.cpp <- compiled for all platforms
|
||||
juce_mymodule/juce_mymodule_2.cpp <- compiled for all platforms
|
||||
juce_mymodule/juce_mymodule_mac.cpp <- compiled for macOS and OSX platforms only
|
||||
juce_mymodule/juce_mymodule_windows.cpp <- compiled for Windows platforms only
|
||||
|
||||
Often this isn't necessary, as in most cases you can easily add checks inside the files
|
||||
to do different things depending on the platform, but this may be handy just to avoid
|
||||
clutter in user projects where files aren't needed.
|
||||
|
||||
To simplify the use of obj-C++ there's also a special-case rule: If the folder contains
|
||||
both a .mm and a .cpp file whose names are otherwise identical, then on macOS/iOS the .mm
|
||||
will be used and the cpp ignored. (And vice-versa for other platforms, of course).
|
||||
|
||||
|
||||
### Precompiled libraries
|
||||
|
||||
Precompiled libraries can be included in a module by placing them in a libs/ subdirectory.
|
||||
The following directories are automatically added to the library search paths, and libraries
|
||||
placed in these directories can be linked with projects via the OSXLibs, iOSLibs,
|
||||
windowsLibs, and linuxLibs keywords in the module declaration (see the following section).
|
||||
|
||||
- OS X
|
||||
- libs/MacOSX - to support multiple architectures, you may place libraries built as universal
|
||||
binaries at this location. For backwards compatibility, the Projucer will also include the
|
||||
directories libs/MacOSX/{arch}, where {arch} is the architecture you are targeting in Xcode
|
||||
("x86_64" or "i386", for example). When building with CMake, only libraries built as universal
|
||||
binaries are supported and the arch subfolders are ignored.
|
||||
|
||||
- Visual Studio
|
||||
- libs/VisualStudio{year}/{arch}/{run-time}, where {year} is the four digit year of the Visual Studio
|
||||
release, arch is the target architecture in Visual Studio ("x64" or "Win32", for example), and
|
||||
{runtime} is the type of the run-time library indicated by the corresponding compiler flag
|
||||
("MD", "MDd", "MT", "MTd").
|
||||
|
||||
- Linux
|
||||
- libs/Linux/{arch}, where {arch} is the architecture you are targeting with the compiler. Some
|
||||
common examples of {arch} are "x86_64", "i386" and "armv6".
|
||||
|
||||
- iOS
|
||||
- libs/iOS - to support multiple architectures, you may place libraries built as universal
|
||||
binaries at this location. For backwards compatibility, the Projucer will also include the
|
||||
directories libs/iOS/{arch}, where {arch} is the architecture you are targeting in Xcode
|
||||
("arm64" or "x86_64", for example). When building with CMake, only libraries built as universal
|
||||
binaries are supported and the arch subfolders are ignored.
|
||||
|
||||
- Android
|
||||
- libs/Android/{arch}, where {arch} is the architecture provided by the Android Studio variable
|
||||
"${ANDROID_ABI}" ("x86", "armeabi-v7a", "mips", for example).
|
||||
|
||||
## The BEGIN_JUCE_MODULE_DECLARATION block
|
||||
|
||||
This block of text needs to go inside the module's main header file. It should be commented-out
|
||||
and perhaps inside an `#if 0` block too, but the Introjucer will just scan the whole file for the
|
||||
string BEGIN_JUCE_MODULE_DECLARATION, and doesn't care about its context in terms of C++ syntax.
|
||||
|
||||
The block needs a corresponding END_JUCE_MODULE_DECLARATION to finish the block.
|
||||
These should both be on a line of their own.
|
||||
|
||||
Inside the block, the parser will expect to find a list of value definitions, one-per-line, with
|
||||
the very simple syntax
|
||||
|
||||
value_name: value
|
||||
|
||||
The value_name must be one of the items listed below, and is case-sensitive. Whitespace on the
|
||||
line is ignored. Some values are compulsory and must be supplied, but others are optional.
|
||||
The order in which they're declared doesn't matter.
|
||||
|
||||
Possible values:
|
||||
|
||||
- ID
|
||||
- (Compulsory) This ID must match the name of the file and folder, e.g. juce_core.
|
||||
The main reason for also including it here is as a sanity-check
|
||||
|
||||
- vendor
|
||||
- (Compulsory) A unique ID for the vendor, e.g. "juce". This should be short
|
||||
and shouldn't contain any spaces
|
||||
|
||||
- version
|
||||
- (Compulsory) A version number for the module
|
||||
|
||||
- name
|
||||
- (Compulsory) A short description of the module
|
||||
|
||||
- description
|
||||
- (Compulsory) A longer description (but still only one line of text, please!)
|
||||
|
||||
- dependencies
|
||||
- (Optional) A list (space or comma-separated) of other modules that are required by
|
||||
this one. The Introjucer can use this to auto-resolve dependencies.
|
||||
|
||||
- website
|
||||
- (Optional) A URL linking to useful info about the module]
|
||||
|
||||
- license
|
||||
- (Optional) A description of the type of software license that applies
|
||||
|
||||
- minimumCppStandard
|
||||
- (Optional) A number indicating the minimum C++ language standard that is required for this module.
|
||||
This must be just the standard number with no prefix e.g. 14 for C++14
|
||||
|
||||
- searchpaths
|
||||
- (Optional) A space-separated list of internal include paths, relative to the module's
|
||||
parent folder, which need to be added to a project's header search path
|
||||
|
||||
- OSXFrameworks
|
||||
- (Optional) A list (space or comma-separated) of OSX frameworks that are needed by this module
|
||||
|
||||
- WeakOSXFrameworks
|
||||
- (Optional) A list (space or comma-separated) of weak linked OSX frameworks that are needed
|
||||
by this module
|
||||
|
||||
- iOSFrameworks
|
||||
- (Optional) A list (space or comma-separated) of iOS frameworks that are needed by this module
|
||||
|
||||
- WeakiOSFrameworks
|
||||
- (Optional) A list (space or comma-separated) of weak linked iOS frameworks that are needed
|
||||
by this module
|
||||
|
||||
- linuxPackages
|
||||
- (Optional) A list (space or comma-separated) pkg-config packages that should be used to pass
|
||||
compiler (CFLAGS) and linker (LDFLAGS) flags
|
||||
|
||||
- linuxLibs
|
||||
- (Optional) A list (space or comma-separated) of static or dynamic libs that should be linked in a
|
||||
linux build (these are passed to the linker via the -l flag)
|
||||
|
||||
- OSXLibs
|
||||
- (Optional) A list (space or comma-separated) of static or dynamic libs that should be linked in an
|
||||
OS X build (these are passed to the linker via the -l flag)
|
||||
|
||||
- iOSLibs
|
||||
- (Optional) A list (space or comma-separated) of static or dynamic libs that should be linked in an
|
||||
iOS build (these are passed to the linker via the -l flag)
|
||||
|
||||
- windowsLibs
|
||||
- (Optional) A list (space or comma-separated) of static or dynamic libs that should be linked in a
|
||||
Visual Studio build (without the .lib suffixes)
|
||||
|
||||
Here's an example block:
|
||||
|
||||
BEGIN_JUCE_MODULE_DECLARATION
|
||||
|
||||
ID: juce_audio_devices
|
||||
vendor: juce
|
||||
version: 4.1.0
|
||||
name: JUCE audio and MIDI I/O device classes
|
||||
description: Classes to play and record from audio and MIDI I/O devices
|
||||
website: http://www.juce.com/juce
|
||||
license: AGPLv3/Commercial
|
||||
|
||||
dependencies: juce_audio_basics, juce_audio_formats, juce_events
|
||||
OSXFrameworks: CoreAudio CoreMIDI DiscRecording
|
||||
iOSFrameworks: CoreAudio CoreMIDI AudioToolbox AVFoundation
|
||||
linuxLibs: asound
|
||||
|
||||
END_JUCE_MODULE_DECLARATION
|
||||
|
||||
+76
@@ -0,0 +1,76 @@
|
||||
# JUCE Dependencies on Linux
|
||||
|
||||
Below is a list of the current dependencies required to build JUCE projects on
|
||||
Ubuntu, separated by module. Where the dependency is optional, the preprocessor
|
||||
flag used to disable it is noted.
|
||||
|
||||
This has been tested on Ubuntu 16.04 LTS (Xenial Xerus), 18.04 LTS (Bionic
|
||||
Beaver), and 20.04 LTS (Focal Fossa). Packages may differ in name or not be
|
||||
available on other distributions.
|
||||
|
||||
## Compiler
|
||||
A C++ compiler is required. JUCE has been tested thoroughly with Clang and GCC:
|
||||
|
||||
sudo apt update
|
||||
sudo apt install clang
|
||||
|
||||
or
|
||||
|
||||
sudo apt update
|
||||
sudo apt install g++
|
||||
|
||||
## Packages
|
||||
|
||||
#### juce_audio_devices
|
||||
- libasound2-dev
|
||||
- libjack-jackd2-dev (unless `JUCE_JACK=0`)
|
||||
|
||||
#### juce_audio_processors
|
||||
- ladspa-sdk (unless `JUCE_PLUGINHOST_LADSPA=0`)
|
||||
|
||||
#### juce_core
|
||||
- libcurl4-openssl-dev (unless `JUCE_USE_CURL=0`)
|
||||
|
||||
#### juce_graphics
|
||||
- libfontconfig1-dev (unless `JUCE_USE_FONTCONFIG=0`)
|
||||
- libfreetype-dev (unless `JUCE_USE_FREETYPE=0`)
|
||||
|
||||
These packages are available on Ubuntu 22 and 24. If libfreetype-dev is not
|
||||
available you could try installing the libfreetype6-dev package.
|
||||
|
||||
#### juce_gui_basics
|
||||
- libx11-dev
|
||||
- libxcomposite-dev
|
||||
- libxcursor-dev (unless `JUCE_USE_XCURSOR=0`)
|
||||
- libxext-dev
|
||||
- libxinerama-dev (unless `JUCE_USE_XINERAMA=0`)
|
||||
- libxrandr-dev (unless `JUCE_USE_XRANDR=0`)
|
||||
- libxrender-dev (unless `JUCE_USE_XRENDER=0`)
|
||||
- libxi-dev (unless `JUCE_USE_XINPUT=0`)
|
||||
|
||||
#### juce_gui_extra
|
||||
- libwebkit2gtk-4.1-dev (unless `JUCE_WEB_BROWSER=0`)
|
||||
|
||||
On older systems, where 4.1 is not available, you can also use
|
||||
|
||||
- libwebkit2gtk-4.0-dev
|
||||
|
||||
Compiled JUCE applications will dynamically load whichever library version is
|
||||
available during runtime.
|
||||
|
||||
#### juce_opengl
|
||||
- libegl-dev
|
||||
- libglu1-mesa-dev and mesa-common-dev (unless `JUCE_OPENGL_ES=1`)
|
||||
- libgles-dev (if `JUCE_OPENGL_ES=1`)
|
||||
|
||||
The full command is as follows:
|
||||
|
||||
sudo apt update
|
||||
sudo apt install libasound2-dev libjack-jackd2-dev \
|
||||
ladspa-sdk \
|
||||
libcurl4-openssl-dev \
|
||||
libfreetype-dev libfontconfig1-dev \
|
||||
libx11-dev libxcomposite-dev libxcursor-dev libxext-dev libxinerama-dev libxrandr-dev libxrender-dev libxi-dev \
|
||||
libwebkit2gtk-4.1-dev \
|
||||
libegl-dev \
|
||||
libglu1-mesa-dev mesa-common-dev
|
||||
Vendored
+15
@@ -0,0 +1,15 @@
|
||||
# JUCE Documentation
|
||||
|
||||
This directory contains files documenting the JUCE Module Format, and the JUCE
|
||||
CMake API.
|
||||
|
||||
The JUCE modules themselves can be found in the `modules` subdirectory of the
|
||||
JUCE repository.
|
||||
|
||||
CMake example projects are located in the `examples/CMake` directory.
|
||||
|
||||
The JUCE API itself is documented inline, but HTML docs can be generated from
|
||||
the source code using the `doxygen` tool. These HTML docs can be [found
|
||||
online](https://juce.com/learn/documentation), or you can generate a local copy
|
||||
which can be used without an internet connection.
|
||||
|
||||
Vendored
+3062
File diff suppressed because it is too large
Load Diff
+272
@@ -0,0 +1,272 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<doxygenlayout version="2.0">
|
||||
<!-- Generated by doxygen 1.14.0 -->
|
||||
<!-- Navigation index tabs for HTML output -->
|
||||
<navindex>
|
||||
<tab type="mainpage" visible="yes" title="Modules"/>
|
||||
<tab type="pages" visible="no" title="" intro=""/>
|
||||
<tab type="topics" visible="no" title="" intro=""/>
|
||||
<tab type="modules" visible="no" title="" intro="">
|
||||
<tab type="modulelist" visible="yes" title="" intro=""/>
|
||||
<tab type="modulemembers" visible="yes" title="" intro=""/>
|
||||
</tab>
|
||||
<tab type="namespaces" visible="no" title="">
|
||||
<tab type="namespacelist" visible="yes" title="" intro=""/>
|
||||
<tab type="namespacemembers" visible="yes" title="" intro=""/>
|
||||
</tab>
|
||||
<tab type="concepts" visible="no" title="">
|
||||
</tab>
|
||||
<tab type="interfaces" visible="no" title="">
|
||||
<tab type="interfacelist" visible="yes" title="" intro=""/>
|
||||
<tab type="interfaceindex" visible="$ALPHABETICAL_INDEX" title=""/>
|
||||
<tab type="interfacehierarchy" visible="yes" title="" intro=""/>
|
||||
</tab>
|
||||
<tab type="classes" visible="no" title="">
|
||||
<tab type="classlist" visible="yes" title="" intro=""/>
|
||||
<tab type="classindex" visible="$ALPHABETICAL_INDEX" title=""/>
|
||||
<tab type="hierarchy" visible="yes" title="" intro=""/>
|
||||
<tab type="classmembers" visible="yes" title="" intro=""/>
|
||||
</tab>
|
||||
<tab type="classindex" visible="$ALPHABETICAL_INDEX" title="All Classes"/>
|
||||
<tab type="structs" visible="no" title="">
|
||||
<tab type="structlist" visible="yes" title="" intro=""/>
|
||||
<tab type="structindex" visible="$ALPHABETICAL_INDEX" title=""/>
|
||||
</tab>
|
||||
<tab type="exceptions" visible="no" title="">
|
||||
<tab type="exceptionlist" visible="yes" title="" intro=""/>
|
||||
<tab type="exceptionindex" visible="$ALPHABETICAL_INDEX" title=""/>
|
||||
<tab type="exceptionhierarchy" visible="yes" title="" intro=""/>
|
||||
</tab>
|
||||
<tab type="files" visible="no" title="">
|
||||
<tab type="filelist" visible="yes" title="" intro=""/>
|
||||
<tab type="globals" visible="yes" title="" intro=""/>
|
||||
</tab>
|
||||
<tab type="examples" visible="no" title="" intro=""/>
|
||||
<tab type="user" visible="yes" title="Tutorials" url="https://juce.com/learn/tutorials"/>
|
||||
<tab type="user" visible="yes" title="Course" url="https://juce.com/learn/course"/>
|
||||
</navindex>
|
||||
|
||||
<!-- Layout definition for a class page -->
|
||||
<class>
|
||||
<briefdescription visible="no"/>
|
||||
<detaileddescription visible="yes" title=""/>
|
||||
<usedfiles visible="$SHOW_USED_FILES"/>
|
||||
<includes visible="$SHOW_HEADERFILE"/>
|
||||
<inheritancegraph visible="yes"/>
|
||||
<collaborationgraph visible="yes"/>
|
||||
<memberdecl>
|
||||
<nestedclasses visible="yes" title=""/>
|
||||
<publictypes visible="yes" title=""/>
|
||||
<services visible="yes" title=""/>
|
||||
<interfaces visible="yes" title=""/>
|
||||
<publicslots visible="yes" title=""/>
|
||||
<signals visible="yes" title=""/>
|
||||
<publicmethods visible="yes" title=""/>
|
||||
<publicstaticmethods visible="yes" title=""/>
|
||||
<publicattributes visible="yes" title=""/>
|
||||
<publicstaticattributes visible="yes" title=""/>
|
||||
<protectedtypes visible="yes" title=""/>
|
||||
<protectedslots visible="yes" title=""/>
|
||||
<protectedmethods visible="yes" title=""/>
|
||||
<protectedstaticmethods visible="yes" title=""/>
|
||||
<protectedattributes visible="yes" title=""/>
|
||||
<protectedstaticattributes visible="yes" title=""/>
|
||||
<packagetypes visible="yes" title=""/>
|
||||
<packagemethods visible="yes" title=""/>
|
||||
<packagestaticmethods visible="yes" title=""/>
|
||||
<packageattributes visible="yes" title=""/>
|
||||
<packagestaticattributes visible="yes" title=""/>
|
||||
<properties visible="yes" title=""/>
|
||||
<events visible="yes" title=""/>
|
||||
<privatetypes visible="yes" title=""/>
|
||||
<privateslots visible="yes" title=""/>
|
||||
<privatemethods visible="yes" title=""/>
|
||||
<privatestaticmethods visible="yes" title=""/>
|
||||
<privateattributes visible="yes" title=""/>
|
||||
<privatestaticattributes visible="yes" title=""/>
|
||||
<friends visible="yes" title=""/>
|
||||
<related visible="yes" title="" subtitle=""/>
|
||||
<membergroups visible="yes"/>
|
||||
</memberdecl>
|
||||
<memberdef>
|
||||
<inlineclasses visible="yes" title=""/>
|
||||
<typedefs visible="yes" title=""/>
|
||||
<enums visible="yes" title="Member Enums"/>
|
||||
<services visible="yes" title=""/>
|
||||
<interfaces visible="yes" title=""/>
|
||||
<constructors visible="yes" title="Constructors and Destructors"/>
|
||||
<functions visible="yes" title="Member Functions"/>
|
||||
<related visible="yes" title=""/>
|
||||
<variables visible="yes" title=""/>
|
||||
<properties visible="yes" title=""/>
|
||||
<events visible="yes" title=""/>
|
||||
</memberdef>
|
||||
<allmemberslink visible="yes"/>
|
||||
<authorsection visible="yes"/>
|
||||
</class>
|
||||
|
||||
<!-- Layout definition for a namespace page -->
|
||||
<namespace>
|
||||
<briefdescription visible="no"/>
|
||||
<detaileddescription visible="yes" title=""/>
|
||||
<memberdecl>
|
||||
<nestednamespaces visible="yes" title=""/>
|
||||
<constantgroups visible="yes" title=""/>
|
||||
<interfaces visible="yes" title=""/>
|
||||
<classes visible="yes" title=""/>
|
||||
<concepts visible="yes" title=""/>
|
||||
<structs visible="yes" title=""/>
|
||||
<exceptions visible="yes" title=""/>
|
||||
<typedefs visible="yes" title=""/>
|
||||
<sequences visible="yes" title=""/>
|
||||
<dictionaries visible="yes" title=""/>
|
||||
<enums visible="yes" title=""/>
|
||||
<functions visible="yes" title=""/>
|
||||
<variables visible="yes" title=""/>
|
||||
<properties visible="yes" title=""/>
|
||||
<membergroups visible="yes"/>
|
||||
</memberdecl>
|
||||
<memberdef>
|
||||
<inlineclasses visible="yes" title=""/>
|
||||
<typedefs visible="yes" title=""/>
|
||||
<sequences visible="yes" title=""/>
|
||||
<dictionaries visible="yes" title=""/>
|
||||
<enums visible="yes" title=""/>
|
||||
<functions visible="yes" title=""/>
|
||||
<variables visible="yes" title=""/>
|
||||
<properties visible="yes" title=""/>
|
||||
</memberdef>
|
||||
<authorsection visible="yes"/>
|
||||
</namespace>
|
||||
|
||||
<!-- Layout definition for a concept page -->
|
||||
<concept>
|
||||
<briefdescription visible="no"/>
|
||||
<detaileddescription visible="yes" title=""/>
|
||||
<includes visible="$SHOW_HEADERFILE"/>
|
||||
<definition visible="yes" title=""/>
|
||||
<authorsection visible="yes"/>
|
||||
</concept>
|
||||
|
||||
<!-- Layout definition for a file page -->
|
||||
<file>
|
||||
<briefdescription visible="no"/>
|
||||
<detaileddescription visible="yes" title=""/>
|
||||
<includes visible="$SHOW_INCLUDE_FILES"/>
|
||||
<includegraph visible="yes"/>
|
||||
<includedbygraph visible="yes"/>
|
||||
<sourcelink visible="yes"/>
|
||||
<memberdecl>
|
||||
<interfaces visible="yes" title=""/>
|
||||
<classes visible="yes" title=""/>
|
||||
<structs visible="yes" title=""/>
|
||||
<exceptions visible="yes" title=""/>
|
||||
<namespaces visible="yes" title=""/>
|
||||
<concepts visible="yes" title=""/>
|
||||
<constantgroups visible="yes" title=""/>
|
||||
<defines visible="yes" title=""/>
|
||||
<typedefs visible="yes" title=""/>
|
||||
<sequences visible="yes" title=""/>
|
||||
<dictionaries visible="yes" title=""/>
|
||||
<enums visible="yes" title=""/>
|
||||
<functions visible="yes" title=""/>
|
||||
<variables visible="yes" title=""/>
|
||||
<properties visible="yes" title=""/>
|
||||
<membergroups visible="yes"/>
|
||||
</memberdecl>
|
||||
<memberdef>
|
||||
<inlineclasses visible="yes" title=""/>
|
||||
<defines visible="yes" title=""/>
|
||||
<typedefs visible="yes" title=""/>
|
||||
<sequences visible="yes" title=""/>
|
||||
<dictionaries visible="yes" title=""/>
|
||||
<enums visible="yes" title=""/>
|
||||
<functions visible="yes" title=""/>
|
||||
<variables visible="yes" title=""/>
|
||||
<properties visible="yes" title=""/>
|
||||
</memberdef>
|
||||
<authorsection/>
|
||||
</file>
|
||||
|
||||
<!-- Layout definition for a group page -->
|
||||
<group>
|
||||
<briefdescription visible="no"/>
|
||||
<detaileddescription visible="yes" title=""/>
|
||||
<groupgraph visible="yes"/>
|
||||
<memberdecl>
|
||||
<nestedgroups visible="yes" title=""/>
|
||||
<modules visible="yes" title=""/>
|
||||
<dirs visible="yes" title=""/>
|
||||
<files visible="yes" title=""/>
|
||||
<namespaces visible="yes" title=""/>
|
||||
<concepts visible="yes" title=""/>
|
||||
<classes visible="yes" title=""/>
|
||||
<defines visible="yes" title=""/>
|
||||
<typedefs visible="yes" title=""/>
|
||||
<sequences visible="yes" title=""/>
|
||||
<dictionaries visible="yes" title=""/>
|
||||
<enums visible="yes" title=""/>
|
||||
<enumvalues visible="yes" title=""/>
|
||||
<functions visible="yes" title=""/>
|
||||
<variables visible="yes" title=""/>
|
||||
<signals visible="yes" title=""/>
|
||||
<publicslots visible="yes" title=""/>
|
||||
<protectedslots visible="yes" title=""/>
|
||||
<privateslots visible="yes" title=""/>
|
||||
<events visible="yes" title=""/>
|
||||
<properties visible="yes" title=""/>
|
||||
<friends visible="yes" title=""/>
|
||||
<membergroups visible="yes"/>
|
||||
</memberdecl>
|
||||
<memberdef>
|
||||
<pagedocs/>
|
||||
<inlineclasses visible="yes" title=""/>
|
||||
<defines visible="yes" title=""/>
|
||||
<typedefs visible="yes" title=""/>
|
||||
<sequences visible="yes" title=""/>
|
||||
<dictionaries visible="yes" title=""/>
|
||||
<enums visible="yes" title=""/>
|
||||
<enumvalues visible="yes" title=""/>
|
||||
<functions visible="yes" title=""/>
|
||||
<variables visible="yes" title=""/>
|
||||
<signals visible="yes" title=""/>
|
||||
<publicslots visible="yes" title=""/>
|
||||
<protectedslots visible="yes" title=""/>
|
||||
<privateslots visible="yes" title=""/>
|
||||
<events visible="yes" title=""/>
|
||||
<properties visible="yes" title=""/>
|
||||
<friends visible="yes" title=""/>
|
||||
</memberdef>
|
||||
<authorsection visible="yes"/>
|
||||
</group>
|
||||
|
||||
<!-- Layout definition for a C++20 module page -->
|
||||
<module>
|
||||
<briefdescription visible="no"/>
|
||||
<detaileddescription visible="yes" title=""/>
|
||||
<exportedmodules visible="yes"/>
|
||||
<memberdecl>
|
||||
<concepts visible="yes" title=""/>
|
||||
<classes visible="yes" title=""/>
|
||||
<enums visible="yes" title=""/>
|
||||
<typedefs visible="yes" title=""/>
|
||||
<functions visible="yes" title=""/>
|
||||
<variables visible="yes" title=""/>
|
||||
<membergroups visible="yes" title=""/>
|
||||
</memberdecl>
|
||||
<memberdecl>
|
||||
<files visible="yes"/>
|
||||
</memberdecl>
|
||||
</module>
|
||||
|
||||
<!-- Layout definition for a directory page -->
|
||||
<directory>
|
||||
<briefdescription visible="no"/>
|
||||
<detaileddescription visible="yes" title=""/>
|
||||
<directorygraph visible="yes"/>
|
||||
<memberdecl>
|
||||
<dirs visible="yes"/>
|
||||
<files visible="yes"/>
|
||||
</memberdecl>
|
||||
</directory>
|
||||
</doxygenlayout>
|
||||
Vendored
+21
@@ -0,0 +1,21 @@
|
||||
# JUCE's Doxygen documentation
|
||||
|
||||
JUCE's doxygen setup aims to be pretty vanilla Doxygen and can be run like so:
|
||||
|
||||
```
|
||||
doxygen Doxyfile
|
||||
```
|
||||
|
||||
However, `build.py` can be run to generate additional documentation indexes for JUCE modules:
|
||||
|
||||
```
|
||||
python3 build.py
|
||||
```
|
||||
|
||||
## Styles
|
||||
|
||||
`HTML_STYLESHEET` is left empty, meaning that Doxygen will generate its default styles.
|
||||
|
||||
JUCE specific overrides then live in `css/doxygen-juce-overrides.css`.
|
||||
|
||||
Code highlighting is done with [highlight.js](https://highlightjs.org).
|
||||
Vendored
+183
@@ -0,0 +1,183 @@
|
||||
from pathlib import Path
|
||||
import argparse
|
||||
import os
|
||||
import subprocess
|
||||
import xml.etree.ElementTree as ET
|
||||
from xml.etree.ElementTree import Element
|
||||
import re
|
||||
|
||||
def get_module_description(module_header: Path) -> str:
|
||||
with open(module_header, 'r') as f:
|
||||
content = f.read()
|
||||
declaration = content[content.find('BEGIN_JUCE_MODULE_DECLARATION'):content.find('END_JUCE_MODULE_DECLARATION')]
|
||||
for line in map(lambda x: x.strip(), declaration.split("\n")):
|
||||
if line.startswith('description:'):
|
||||
return line.removeprefix('description:').strip()
|
||||
|
||||
def createContentDict() -> dict:
|
||||
return {
|
||||
'classes/structs': {},
|
||||
'functions': {},
|
||||
'typedefs': {},
|
||||
'macros': {},
|
||||
'enums': {},
|
||||
'dirs': {}
|
||||
}
|
||||
|
||||
def getContentObjectFromPath(root_object: dict, location: str) -> dict:
|
||||
path_components = Path(location).parts
|
||||
contents = root_object[path_components[0]]
|
||||
for path_component in path_components[1:-1]:
|
||||
if not (path_component in contents['dirs']):
|
||||
contents['dirs'][path_component] = createContentDict()
|
||||
contents = contents['dirs'][path_component]
|
||||
return contents
|
||||
|
||||
def parseNamespaceXml(root_object, filename):
|
||||
element = ET.parse(f'xml/{filename}').getroot()
|
||||
|
||||
for class_reference in element.findall('.//innerclass'):
|
||||
refid = class_reference.attrib['refid']
|
||||
html_filename = f'{refid}.html'
|
||||
if not Path(f'doc/{html_filename}').is_file():
|
||||
continue
|
||||
xml_path = Path(f'xml/{refid}.xml')
|
||||
if not xml_path.is_file():
|
||||
continue
|
||||
class_element = ET.parse(xml_path).getroot()
|
||||
location = class_element.find('.//location').attrib['file']
|
||||
contents = getContentObjectFromPath(root_object, location)
|
||||
contents['classes/structs'][class_reference.text.removeprefix('juce::')] = {
|
||||
'url': f'./{html_filename}'
|
||||
}
|
||||
|
||||
namespace_def_id = element.find('.//compounddef').attrib['id']
|
||||
namespace_id_prefix = f'{namespace_def_id}_1'
|
||||
|
||||
for kind, contents_key in (('function', 'functions'), ('typedef', 'typedefs'), ('enum', 'enums')):
|
||||
for reference in element.findall(f".//memberdef[@kind='{kind}']"):
|
||||
desc = reference.find('briefdescription')
|
||||
if (len(desc) == 0) and (not desc.text.strip()):
|
||||
continue
|
||||
ref_id = reference.attrib['id']
|
||||
if not ref_id.startswith(namespace_id_prefix):
|
||||
continue
|
||||
name = reference.find('.//qualifiedname').text.removeprefix('juce::')
|
||||
if re.search(r'operator[+\-*/=!<>]*$', name):
|
||||
continue
|
||||
anchor = ref_id.removeprefix(namespace_id_prefix)
|
||||
location = reference.find('.//location').attrib['file']
|
||||
contents = getContentObjectFromPath(modules, location)
|
||||
contents[contents_key][name] = {
|
||||
'url': f'./{namespace_def_id}.html#{anchor}'
|
||||
}
|
||||
|
||||
def parseFileXml(root_object, filename):
|
||||
element = ET.parse(f'xml/{filename}').getroot()
|
||||
compounddef_id = element.find('compounddef').attrib['id']
|
||||
def_reference_link_prefix = compounddef_id + '_1'
|
||||
for def_reference in element.findall(".//memberdef[@kind='define']"):
|
||||
def_id = def_reference.attrib['id']
|
||||
if not def_id.startswith(def_reference_link_prefix):
|
||||
continue
|
||||
def_desc = def_reference.find('briefdescription')
|
||||
if (len(def_desc) == 0) and (not def_desc.text.strip()):
|
||||
continue
|
||||
html_filename = f'{compounddef_id}.html'
|
||||
if not (Path('doc') / html_filename).exists():
|
||||
continue
|
||||
location = def_reference.find('.//location').attrib['file']
|
||||
contents = getContentObjectFromPath(root_object, location)
|
||||
anchor = def_id.removeprefix(def_reference_link_prefix)
|
||||
contents['macros'][def_reference.find('name').text] = {
|
||||
'url': f'./{html_filename}#{anchor}',
|
||||
}
|
||||
|
||||
def write_module_html_recursive(parent: Element, data: dict):
|
||||
for section_key, section_contents in data.items():
|
||||
if section_key in ('dirs', 'description'):
|
||||
continue
|
||||
if not section_contents:
|
||||
continue
|
||||
#ET.SubElement(parent, 'span', {'class': 'juce-module-contents-title'}).text = section_key
|
||||
section_list = ET.SubElement(parent, 'ul', {'class': 'juce-module-class-list'})
|
||||
for section_item_key, section_item_contents in sorted(section_contents.items()):
|
||||
item = ET.SubElement(section_list, 'li', {'class': 'juce-module-class-item'})
|
||||
ET.SubElement(item, 'a', {'href': section_item_contents['url'], 'class': 'juce-module-class-link'}).text = section_item_key
|
||||
if data['dirs']:
|
||||
dir_table = ET.SubElement(parent, 'table', {'class': 'juce-module-dir-table'})
|
||||
for dir_key, dir_contents in sorted(data['dirs'].items()):
|
||||
row = ET.SubElement(dir_table, 'tr', {'class': 'juce-module-dir-row'})
|
||||
ET.SubElement(row, 'td', {'class': 'juce-module-dir-name'}).text = dir_key
|
||||
content = ET.SubElement(row, 'td', {'class': 'juce-module-dir-contents'})
|
||||
write_module_html_recursive(content, dir_contents)
|
||||
|
||||
parser = argparse.ArgumentParser()
|
||||
parser.add_argument('--sitemap-url', help='The Doxygen sitemap configuration variable')
|
||||
args = parser.parse_args()
|
||||
|
||||
if args.sitemap_url:
|
||||
os.environ['JUCE_SITEMAP_URL']=args.sitemap_url
|
||||
|
||||
print('--- Running Doxygen')
|
||||
subprocess.run("doxygen", shell=True, check=True)
|
||||
|
||||
print('--- Parsing module headers')
|
||||
modules_dir = Path('../../modules')
|
||||
assert modules_dir.is_dir()
|
||||
modules = {}
|
||||
for module_name in os.listdir(modules_dir):
|
||||
module_dir = modules_dir / module_name
|
||||
if not module_dir.is_dir():
|
||||
continue
|
||||
module_header = module_dir / f'{module_name}.h'
|
||||
if not module_header.is_file():
|
||||
continue
|
||||
modules[module_name] = createContentDict()
|
||||
modules[module_name]['description'] = get_module_description(module_header)
|
||||
|
||||
print('--- Parsing Doxygen XML')
|
||||
for xml_filename in os.listdir('xml'):
|
||||
if xml_filename.startswith('namespacejuce'):
|
||||
parseNamespaceXml(modules, xml_filename)
|
||||
elif xml_filename.startswith('juce__'):
|
||||
# There are no macros in the namespace XML so we need to get them separately
|
||||
parseFileXml(modules, xml_filename)
|
||||
|
||||
print('--- Creating JUCE Module HTML')
|
||||
|
||||
module_icon = ET.Element('svg', {'fill': '#000000', 'viewBox': '0 0 56 56', 'class': 'juce-module-icon'})
|
||||
ET.SubElement(module_icon, 'path', {'d': 'M 28.0000 26.6406 L 50.0783 14.1016 C 49.7264 13.75 49.3045 13.4688 48.7890 13.1875 L 32.2657 3.7657 C 30.8126 2.9453 29.4063 2.5000 28.0000 2.5000 C 26.5938 2.5000 25.1875 2.9453 23.7344 3.7657 L 7.2110 13.1875 C 6.6954 13.4688 6.2735 13.75 5.9219 14.1016 Z M 26.4063 53.5 L 26.4063 29.4532 L 4.3985 16.8906 C 4.2813 17.4063 4.2110 17.9688 4.2110 18.6719 L 4.2110 36.9297 C 4.2110 40.3281 5.4063 41.5938 7.5860 42.8360 L 25.9375 53.2891 C 26.1016 53.3828 26.2422 53.4532 26.4063 53.5 Z M 29.5938 53.5 C 29.7579 53.4532 29.8985 53.3828 30.0626 53.2891 L 48.4141 42.8360 C 50.5938 41.5938 51.7890 40.3281 51.7890 36.9297 L 51.7890 18.6719 C 51.7890 17.9688 51.7189 17.4063 51.6018 16.8906 L 29.5938 29.4532 Z'})
|
||||
|
||||
main_div = ET.Element('div', {'class': 'juce-modules-continer'})
|
||||
|
||||
toc_div = ET.SubElement(main_div, 'div', {'class': 'juce-module-toc-container'})
|
||||
ET.SubElement(toc_div, 'p', {'class': 'juce-module-toc-desc'}).text = "Here is a summary of the JUCE modules. To search absolutely everything please use the search bar."
|
||||
toc_table = ET.SubElement(toc_div, 'table', {'class': 'juce-module-toc-table'})
|
||||
for key, contents in sorted(modules.items()):
|
||||
toc_row = ET.SubElement(toc_table, 'tr', {'class': 'juce-module-toc-row'})
|
||||
module_toc_name = ET.SubElement(toc_row, 'td', {'class': 'juce-module-toc-module-name'})
|
||||
ET.SubElement(module_toc_name, 'a', {'href': f'#{key}', 'class': 'juce-module-toc-module-name-link'}).text = key
|
||||
ET.SubElement(toc_row, 'td', {'class': 'juce-module-toc-module-decs'}).text = contents['description']
|
||||
ET.SubElement(main_div, 'div', {'class': 'juce-module-toc-divider'})
|
||||
|
||||
for key, contents in sorted(modules.items()):
|
||||
module_div = ET.SubElement(main_div, 'div', {'class': 'juce-module'})
|
||||
module_header_div = ET.SubElement(module_div, 'div', {'class': 'juce-module-header'})
|
||||
module_title_div = ET.SubElement(module_header_div, 'div', {'class': 'juce-module-title'})
|
||||
module_title_div.append(module_icon)
|
||||
ET.SubElement(module_title_div, 'span', {'id': key, 'class': 'juce-module-name'}).text = key
|
||||
ET.SubElement(module_header_div, 'span', {'class': 'juce-module-desc'}).text = contents['description']
|
||||
module_contents_div = ET.SubElement(module_div, 'div', {'class': 'juce-module-contents'})
|
||||
write_module_html_recursive(module_contents_div, contents)
|
||||
|
||||
print('--- Updating Doxygen HTML')
|
||||
html = ET.tostring(main_div, encoding='utf-8', method='html').decode('utf-8')
|
||||
with open('doc/index.html', 'r', encoding='utf-8') as f:
|
||||
content = f.read()
|
||||
content = content.replace('JUCE Documentation', 'JUCE Modules')
|
||||
key = '<div class="contents">'
|
||||
index = content.index(key) + len(key)
|
||||
content = content[:index] + html + content[index:]
|
||||
with open('doc/index.html', 'w', encoding='utf-8') as f:
|
||||
f.write(content)
|
||||
@@ -0,0 +1,249 @@
|
||||
/*
|
||||
Modified Doxygen Theme for JUCE
|
||||
|
||||
Don't edit the main doxygen-1.14.css file, edit this instead.
|
||||
|
||||
This file is included after the base theme to override specific styles.
|
||||
*/
|
||||
|
||||
/* Use Open Sans everywhere, Inconsalata for code */
|
||||
html,
|
||||
body {
|
||||
--font-family-normal: "Open Sans", Helvetica, Arial, sans-serif;
|
||||
--font-family-monospace: "Inconsolata", monospace;
|
||||
--font-family-nav: "Open Sans", Helvetica, Arial, sans-serif;
|
||||
--font-family-title: "Open Sans", Helvetica, Arial, sans-serif;
|
||||
--font-family-toc: "Open Sans", Helvetica, Arial, sans-serif;
|
||||
--font-family-search: "Open Sans", Helvetica, Arial, sans-serif;
|
||||
--font-family-icon: Arial, Helvetica;
|
||||
--font-family-tooltip: "Open Sans", Helvetica, Arial, sans-serif;
|
||||
}
|
||||
|
||||
/* 14px is a good readable minimum */
|
||||
body,
|
||||
table,
|
||||
div,
|
||||
p,
|
||||
dl {
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
/* slightly larger text blocks for better readability */
|
||||
p {
|
||||
line-height: 1.5em;
|
||||
}
|
||||
|
||||
/* nicer code blocks */
|
||||
pre {
|
||||
margin-bottom: 1em;
|
||||
}
|
||||
|
||||
pre code {
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
code {
|
||||
font-family: var(--font-family-monospace);
|
||||
}
|
||||
|
||||
/* all links should display underline on hover */
|
||||
a:hover {
|
||||
color: var(--page-link-color);
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
/* make sure we aren't hugging the sides for readablity */
|
||||
#doc-content {
|
||||
margin: 0 1.5em;
|
||||
}
|
||||
|
||||
#main-nav {
|
||||
padding: 0 1em;
|
||||
}
|
||||
|
||||
/* Readability is TERRIBLE with unlimited widths. UX 101 */
|
||||
div.textblock {
|
||||
max-width: 750px;
|
||||
}
|
||||
|
||||
div.textblock h2 {
|
||||
margin-top: 1.5em;
|
||||
}
|
||||
|
||||
/* Tame the search UX */
|
||||
#MSearchField {
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
.SRPage {
|
||||
margin: 0.5em;
|
||||
}
|
||||
|
||||
.SRPage .SREntry {
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.SRChildren {
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
#navrow1 .tablist>li:last-child {
|
||||
margin-top: 0.3em;
|
||||
}
|
||||
|
||||
/* Give the header a bit of room */
|
||||
div.header {
|
||||
background-color: transparent;
|
||||
border-bottom: none;
|
||||
margin-top: 1em;
|
||||
}
|
||||
|
||||
/* Align this sub-nav with the heading */
|
||||
div.summary {
|
||||
margin-top: 1.5em;
|
||||
}
|
||||
|
||||
/* Breadcrumbs aren't useful, so lets hide them */
|
||||
div#nav-path {
|
||||
display: none;
|
||||
}
|
||||
|
||||
/* Hide the unnecessarily noisy "Detailed Description" header */
|
||||
h2.groupheader#header-details {
|
||||
display: none;
|
||||
}
|
||||
|
||||
/* remove noisy extra lines in headers */
|
||||
td h2.groupheader {
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
/* Doxygen uses monospace for headings, which is rough on scannability.
|
||||
It's also using 1990s style css with tables and "float left" for layout
|
||||
*/
|
||||
h2.memtitle {
|
||||
font-family: var(--font-family-normal);
|
||||
font-size: 20px;
|
||||
font-weight: 300;
|
||||
float: none;
|
||||
width: max-content;
|
||||
/* this is what they wanted vs. float */
|
||||
}
|
||||
|
||||
/* limit the width of member lists for basic readability */
|
||||
div.memitem {
|
||||
max-width: 750px;
|
||||
}
|
||||
|
||||
/* member declarations should also not be monospace */
|
||||
.memberdecls tr[class^='memitem'] {
|
||||
font-family: var(--font-family-normal);
|
||||
}
|
||||
|
||||
/* better spacing around section headers */
|
||||
tr.heading h2 {
|
||||
margin-top: 2em;
|
||||
margin-bottom: 1em;
|
||||
}
|
||||
|
||||
/* sane line height on class index */
|
||||
.classindex dd {
|
||||
line-height: 1.5em;
|
||||
}
|
||||
|
||||
/* descriptions should be readable */
|
||||
div.contents div.textblock p {
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
/* get rid of crufty borders and background colors */
|
||||
.memItemLeft,
|
||||
.memItemRight,
|
||||
memTemplParams {
|
||||
background-color: transparent;
|
||||
border-right: none;
|
||||
border-left: none;
|
||||
border-bottom: none;
|
||||
padding: 0.6em 0 0 0;
|
||||
}
|
||||
|
||||
.mdescLeft,
|
||||
.mdescRight {
|
||||
border-right: none;
|
||||
border-left: none;
|
||||
padding: 0 0 0.6em 0;
|
||||
}
|
||||
|
||||
tr[class^='memdesc'] {
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
/* tame crufty borders on member lists */
|
||||
.memproto,
|
||||
dl.reflist dt {
|
||||
border-bottom: none;
|
||||
}
|
||||
|
||||
/* chill out on the 1990s crufty rolodex card borders */
|
||||
html {
|
||||
--memdef-border-color: #a8b8d949;
|
||||
}
|
||||
|
||||
/* JUCE MODULES */
|
||||
.juce-modules-continer {
|
||||
margin-left: 1em;
|
||||
}
|
||||
|
||||
.juce-module-toc-table {
|
||||
margin-left: 1em;
|
||||
}
|
||||
|
||||
.juce-module-toc-divider {
|
||||
border-bottom: 1px solid;
|
||||
margin-top: 2em;
|
||||
margin-bottom: 2em;
|
||||
}
|
||||
|
||||
.juce-module-toc-module-name {
|
||||
padding-right: 1em;
|
||||
}
|
||||
|
||||
.juce-module-desc {
|
||||
margin-left: 1em;
|
||||
}
|
||||
|
||||
.juce-module-contents {
|
||||
margin-top: 1em;
|
||||
margin-left: 1em;
|
||||
}
|
||||
|
||||
.juce-module-title {
|
||||
margin-top: 1em;
|
||||
margin-bottom: 1em;
|
||||
}
|
||||
|
||||
.juce-module-icon {
|
||||
height: 1.5em;
|
||||
margin-right: 0.75em;
|
||||
vertical-align: middle;
|
||||
fill: var(--page-foreground-color);
|
||||
}
|
||||
|
||||
.juce-module-name {
|
||||
font-size: 1.5em;
|
||||
font-weight: bold;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
.juce-module-dir-name {
|
||||
font-size: 1.1em;
|
||||
font-weight: bold;
|
||||
vertical-align: top;
|
||||
padding-right: 1em;
|
||||
}
|
||||
|
||||
.juce-module-class-list {
|
||||
list-style: none;
|
||||
padding: 0;
|
||||
margin-top: 1.5em;
|
||||
}
|
||||
+184
@@ -0,0 +1,184 @@
|
||||
/* ==========================================================================
|
||||
juce.com shared site chrome (header + footer).
|
||||
Mirrors the juce.com WordPress block theme; see the theme repo for the
|
||||
canonical values. Scoped under .juce-site-chrome so it cannot leak into
|
||||
app or Tailwind styles. Fonts: Open Sans / Source Sans Pro, loaded by the
|
||||
apps' layouts.
|
||||
========================================================================== */
|
||||
|
||||
.juce-site-chrome {
|
||||
/* design tokens (theme.json palette) */
|
||||
--juce-base: #ffffff;
|
||||
--juce-contrast: #231f20;
|
||||
--juce-neutral-900: #262626;
|
||||
--juce-neutral-700: #52565a;
|
||||
--juce-primary: #f09f53;
|
||||
--juce-secondary: #8dc63f;
|
||||
--juce-lime: #add14c;
|
||||
--juce-yellow: #ecdc13;
|
||||
--juce-red: #e74253;
|
||||
|
||||
font-family: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
|
||||
font-size: 16px;
|
||||
line-height: 1.6;
|
||||
letter-spacing: normal;
|
||||
color: var(--juce-base);
|
||||
box-sizing: border-box;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
}
|
||||
.juce-site-chrome *, .juce-site-chrome *::before, .juce-site-chrome *::after { box-sizing: inherit; }
|
||||
.juce-site-chrome ul { list-style: none; margin: 0; padding: 0; }
|
||||
.juce-site-chrome a { text-decoration: none; color: inherit; }
|
||||
.juce-site-chrome a:visited { color: inherit; }
|
||||
.juce-site-chrome img { max-width: 100%; }
|
||||
.juce-site-chrome button { background: none; border: 0; padding: 0; color: inherit; cursor: pointer; font: inherit; }
|
||||
/* Host pages (e.g. Doxygen) set fonts on bare element selectors; restore inheritance inside the chrome. */
|
||||
.juce-site-chrome :where(div, p, ul, li, a, span) { font: inherit; }
|
||||
|
||||
/* --------------------------------------------------------------------------
|
||||
Header
|
||||
-------------------------------------------------------------------------- */
|
||||
.site-header { background-color: var(--juce-neutral-900); color: var(--juce-base); padding: 0.5rem 1.5rem; }
|
||||
.site-header__row {
|
||||
max-width: 1280px; margin: 0 auto; min-height: 69px;
|
||||
display: flex; align-items: center; justify-content: space-between;
|
||||
flex-wrap: nowrap; gap: 1rem; min-width: 0;
|
||||
}
|
||||
.site-header__logo img { width: 160px; height: auto; display: block; }
|
||||
.site-header__right { display: flex; align-items: center; flex-wrap: nowrap; gap: 1rem; min-width: 0; }
|
||||
|
||||
.site-header .wp-block-navigation { display: flex; align-items: center; }
|
||||
.site-header .wp-block-navigation__container { display: flex; align-items: center; gap: 1.5rem; }
|
||||
.site-header .wp-block-navigation-item { position: relative; }
|
||||
.site-header .wp-block-navigation-item {
|
||||
display: flex; align-items: center; gap: 0.25em;
|
||||
}
|
||||
.site-header .wp-block-navigation-item__content {
|
||||
display: inline-flex; align-items: center;
|
||||
font-size: 16px; line-height: 1.6; color: var(--juce-base);
|
||||
white-space: nowrap;
|
||||
}
|
||||
.site-header .wp-block-navigation-item__content:hover,
|
||||
.site-header .wp-block-navigation-item__content:focus { color: var(--juce-lime); }
|
||||
.site-header .wp-block-navigation__submenu-icon { display: inline-flex; align-items: center; color: var(--juce-base); }
|
||||
.site-header .wp-block-navigation__submenu-icon svg {
|
||||
display: block;
|
||||
width: 0.6em; height: 0.6em; /* WordPress renders the caret at 0.6em */
|
||||
transform: translateY(1.2px); /* and baseline-aligns it slightly below centre */
|
||||
}
|
||||
|
||||
/* dropdowns (desktop) */
|
||||
.site-header .wp-block-navigation__submenu-container {
|
||||
position: absolute; top: 100%; left: -1.25rem; z-index: 100;
|
||||
min-width: 200px; padding: 0.6rem 0;
|
||||
background: var(--juce-neutral-900); border-radius: 0 0 8px 8px;
|
||||
display: block; visibility: hidden; opacity: 0; transition: opacity 0.15s ease;
|
||||
}
|
||||
.site-header .wp-block-navigation-item.has-child:hover > .wp-block-navigation__submenu-container,
|
||||
.site-header .wp-block-navigation-item.has-child:focus-within > .wp-block-navigation__submenu-container {
|
||||
visibility: visible; opacity: 1;
|
||||
}
|
||||
.site-header .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
|
||||
display: block; padding: 0.5rem 1.25rem; white-space: nowrap;
|
||||
}
|
||||
.site-header .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover { background: #333333; color: var(--juce-base); }
|
||||
|
||||
/* account icon + CTA */
|
||||
.site-header .header-account { color: var(--juce-base); display: inline-flex; margin-left: 1.25rem; }
|
||||
.site-header .header-account:hover { color: var(--juce-lime); }
|
||||
.site-header .header-account svg { display: block; }
|
||||
.site-header__cta {
|
||||
display: inline-block; margin-left: 0.75rem; padding: 0.55rem 1.25rem;
|
||||
line-height: 1.6;
|
||||
background: var(--juce-secondary); color: var(--juce-base);
|
||||
border-radius: 999px; font-size: 0.875rem; font-weight: 600;
|
||||
letter-spacing: 0.04em; text-transform: uppercase; white-space: nowrap;
|
||||
}
|
||||
.site-header__cta:hover { background: var(--juce-lime); color: var(--juce-contrast); }
|
||||
|
||||
/* burger + overlay (below 1120px) */
|
||||
.site-header .wp-block-navigation__responsive-container-open { display: none; padding: 0; width: 24px; height: 24px; }
|
||||
@media (max-width: 899px) {
|
||||
.site-header .wp-block-navigation__responsive-container-open { display: inline-flex; }
|
||||
.site-header .wp-block-navigation__responsive-container:not(.is-menu-open) { display: none; }
|
||||
.site-header .wp-block-navigation__responsive-container.is-menu-open {
|
||||
position: fixed; inset: 0; z-index: 1000; overflow-y: auto;
|
||||
background: var(--juce-neutral-900); padding: 4rem 1.5rem 2rem;
|
||||
}
|
||||
.site-header .is-menu-open .wp-block-navigation__container {
|
||||
flex-direction: column; align-items: flex-start; gap: 0.5rem;
|
||||
}
|
||||
.site-header .is-menu-open .wp-block-navigation__submenu-container {
|
||||
position: static; visibility: visible; opacity: 1; min-width: 0;
|
||||
padding: 0 0 0 1.5rem; border-radius: 0;
|
||||
}
|
||||
.site-header .is-menu-open .wp-block-navigation-item { display: block; }
|
||||
.site-header .is-menu-open .wp-block-navigation-item__content { display: block; padding: 8px 0; }
|
||||
.site-header .is-menu-open .wp-block-navigation__submenu-icon { display: none; }
|
||||
.site-header .wp-block-navigation__responsive-container-close {
|
||||
position: absolute; top: 1rem; right: 1.5rem; padding: 0; width: 24px; height: 24px;
|
||||
}
|
||||
}
|
||||
@media (min-width: 900px) {
|
||||
.site-header .wp-block-navigation__responsive-container-close { display: none; }
|
||||
}
|
||||
html.juce-menu-open, html.juce-menu-open body { overflow: hidden; }
|
||||
|
||||
/* --------------------------------------------------------------------------
|
||||
Footer
|
||||
-------------------------------------------------------------------------- */
|
||||
.site-footer { font-size: 16px; }
|
||||
.site-sitemap {
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4zMSwxMDIuMjRaIiBmaWxsPSIjMmI4ZWMxIi8+CiAgICAgIDxwYXRoIGQ9Ik0xMjYuNDUsMTY2YTYsNiwwLDAsMC03LjY4LTcuOTJjLTIxLjgxLDguNjYtNDMuNTcsMTgtNjUuMjgsMjkuNzdhMTQuNTcsMTQuNTcsMCwwLDAtNC45MiwyMS4yNiwxMTUuOSwxMTUuOSwwLDAsMCwzMS41NSwzMEExNC41NywxNC41NywwLDAsMCwxMDEuODksMjMxQzEwOC44NCwyMDgsMTE3LjQyLDE4Ni43NSwxMjYuNDUsMTY2WiIgZmlsbD0iI2FkZDE0YyIvPgogICAgICA8cGF0aCBkPSJNMTU4LjY3LDEyMC4xMmE2LDYsMCwwLDAsNy42OCw3LjkxYzIxLjkyLTguNyw0My43OS0xOC4xNCw2NS42Mi0zMEExNC41OCwxNC41OCwwLDAsMCwyMzcsNzdhMTE1LjgyLDExNS44MiwwLDAsMC0zMS40OS0zMC44NCwxNC41NywxNC41NywwLDAsMC0yMS45Miw4QzE3Ni41Niw3Ny40NiwxNjcuODQsOTkuMDUsMTU4LjY3LDEyMC4xMloiIGZpbGw9IiNlNzQyNTMiLz4KICAgICAgPHBhdGggZD0iTTExNC44MiwxMzdjLTIxLjY0LTkuMzctNDMuNzYtMTguMTktNjcuNy0yNS4xMWExNC42MSwxNC42MSwwLDAsMC0xOC40OSwxMS42MywxMTYuMTEsMTE2LjExLDAsMCwwLDEuMjEsNDMuNjUsMTQuNTYsMTQuNTYsMCwwLDAsMjEsOS41OGMyMS4zLTExLjI1LDQyLjU3LTIwLjMzLDYzLjc5LTI4LjczQTYsNiwwLDAsMCwxMTQuODIsMTM3WiIgZmlsbD0iIzAxYjY5OSIvPgogICAgPC9nPgogIDwvZz4KPC9zdmc+Cg==");
|
||||
background-size: auto, 700px auto;
|
||||
background-position: center, right -120px center;
|
||||
background-repeat: no-repeat;
|
||||
background-color: var(--juce-secondary);
|
||||
padding: 3rem 1.5rem;
|
||||
}
|
||||
.site-sitemap__columns {
|
||||
max-width: 1280px; margin: 0 auto;
|
||||
display: flex; gap: 0 2rem;
|
||||
}
|
||||
.site-sitemap__column { min-width: 0; }
|
||||
@media (max-width: 767px) {
|
||||
.site-sitemap__columns { flex-direction: column; }
|
||||
.site-sitemap__column { flex-basis: auto !important; }
|
||||
}
|
||||
.site-sitemap h3 {
|
||||
color: rgba(0, 0, 0, 0.4); border-left: 8px solid rgba(0, 0, 0, 0.2);
|
||||
padding-left: 8px; margin: 25px 0 10px;
|
||||
font-family: "Source Sans 3", "Source Sans Pro", "Open Sans", sans-serif;
|
||||
font-size: 1.5rem; font-weight: 500; line-height: 1.2;
|
||||
}
|
||||
.site-sitemap li { margin: 0 0 0.35rem; line-height: 1.6; }
|
||||
.site-sitemap__column > h3:first-child,
|
||||
.site-sitemap__column > div:first-child > h3:first-child { margin-top: 0; }
|
||||
.site-sitemap a { line-height: 1.6; }
|
||||
.site-sitemap a { color: var(--juce-base); }
|
||||
.site-sitemap a:hover { color: var(--juce-yellow); }
|
||||
|
||||
.site-footer-bar { background: var(--juce-neutral-900); padding: 1.5rem; }
|
||||
.site-footer-bar {
|
||||
display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: center;
|
||||
max-width: 1280px; margin: 0 auto; box-sizing: content-box;
|
||||
}
|
||||
.site-footer-bar__social { justify-self: start; }
|
||||
.site-footer-bar__logo { justify-self: center; }
|
||||
.site-footer-bar__copyright { justify-self: end; }
|
||||
.site-footer-bar__social { display: flex; gap: 20px; }
|
||||
.site-footer-bar__social a {
|
||||
display: inline-flex; align-items: center; justify-content: center;
|
||||
width: 36px; height: 36px; border-radius: 50%;
|
||||
background: var(--juce-secondary); color: var(--juce-base);
|
||||
}
|
||||
.site-footer-bar__social svg { width: 24px; height: 24px; }
|
||||
.site-footer-bar__social a:hover { background: var(--juce-red); }
|
||||
.site-footer-bar__logo img { width: 140px; height: auto; display: block; }
|
||||
.site-footer-bar__copyright { margin: 0; font-size: 0.875rem; color: var(--juce-base); }
|
||||
@media (max-width: 600px) {
|
||||
.site-footer-bar { justify-content: center; text-align: center; }
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
pre code.hljs{display:block;overflow-x:auto;padding:1em}code.hljs{padding:3px 5px}/*!
|
||||
Theme: Tokyo-night-Dark
|
||||
origin: https://github.com/enkia/tokyo-night-vscode-theme
|
||||
Description: Original highlight.js style
|
||||
Author: (c) Henri Vandersleyen <hvandersleyen@gmail.com>
|
||||
License: see project LICENSE
|
||||
Touched: 2022
|
||||
*/.hljs-comment,.hljs-meta{color:#565f89}.hljs-deletion,.hljs-doctag,.hljs-regexp,.hljs-selector-attr,.hljs-selector-class,.hljs-selector-id,.hljs-selector-pseudo,.hljs-tag,.hljs-template-tag,.hljs-variable.language_{color:#f7768e}.hljs-link,.hljs-literal,.hljs-number,.hljs-params,.hljs-template-variable,.hljs-type,.hljs-variable{color:#ff9e64}.hljs-attribute,.hljs-built_in{color:#e0af68}.hljs-keyword,.hljs-property,.hljs-subst,.hljs-title,.hljs-title.class_,.hljs-title.class_.inherited__,.hljs-title.function_{color:#7dcfff}.hljs-selector-tag{color:#73daca}.hljs-addition,.hljs-bullet,.hljs-quote,.hljs-string,.hljs-symbol{color:#9ece6a}.hljs-code,.hljs-formula,.hljs-section{color:#7aa2f7}.hljs-attr,.hljs-char.escape_,.hljs-keyword,.hljs-name,.hljs-operator{color:#bb9af7}.hljs-punctuation{color:#c0caf5}.hljs{background:#1a1b26;color:#9aa5ce}.hljs-emphasis{font-style:italic}.hljs-strong{font-weight:700}
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
<html>
|
||||
<p>The requested resource is not available.</p>
|
||||
<p>Please contact info@juce.com if you were expecting to find something here.</p>
|
||||
</html>
|
||||
BIN
Binary file not shown.
|
After Width: | Height: | Size: 15 KiB |
+58
@@ -0,0 +1,58 @@
|
||||
<!-- HTML footer for doxygen 1.14.0-->
|
||||
<!-- start footer part -->
|
||||
<!--BEGIN GENERATE_TREEVIEW-->
|
||||
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
|
||||
<ul>
|
||||
$navpath
|
||||
<li class="footer">$generatedby <a href="https://www.doxygen.org/index.html"><img class="footer" src="$relpath^doxygen.svg" width="104" height="31" alt="doxygen"/></a> $doxygenversion </li>
|
||||
</ul>
|
||||
</div>
|
||||
<!--END GENERATE_TREEVIEW-->
|
||||
<!--BEGIN !GENERATE_TREEVIEW-->
|
||||
</div><!-- doc-content -->
|
||||
<!--END !GENERATE_TREEVIEW-->
|
||||
|
||||
<footer class="juce-site-chrome site-footer">
|
||||
<div class="site-sitemap">
|
||||
<div class="site-sitemap__columns">
|
||||
<div class="site-sitemap__column" style="flex-basis:25%">
|
||||
<h3>Purchase</h3><ul><li><a href="https://juce.com/get-juce/">Get JUCE</a></li></ul>
|
||||
<h3>Discover</h3><ul>
|
||||
<li><a href="https://juce.com/whats-new/">What’s New in JUCE</a></li>
|
||||
<li><a href="https://juce.com/features/">Features</a></li>
|
||||
<li><a href="https://juce.com/made-with-juce/">Made with JUCE</a></li>
|
||||
<li><a href="https://juce.com/category/blog/">Blog</a></li></ul>
|
||||
<h3>Learn</h3><ul>
|
||||
<li><a href="https://juce.com/learn/documentation/">Documentation</a></li>
|
||||
<li><a href="https://juce.com/learn/tutorials/">Tutorials</a></li>
|
||||
<li><a href="https://juce.com/resources/">Resources</a></li></ul>
|
||||
</div>
|
||||
<div class="site-sitemap__column" style="flex-basis:41.67%">
|
||||
<h3>Support</h3><ul>
|
||||
<li><a href="https://forum.juce.com/">JUCE Forum</a></li>
|
||||
<li><a href="https://juce.com/newsletter/">Newsletter</a></li></ul>
|
||||
<h3>About</h3><ul>
|
||||
<li><a href="https://juce.com/contact-us/">Contact Us</a></li>
|
||||
<li><a href="https://juce.com/security/">Security</a></li>
|
||||
<li><a href="https://juce.com/juce-legal/">JUCE Legal</a></li>
|
||||
<li><a href="https://juce.com/legal/juce-9-licence/">JUCE 9 EULA</a></li>
|
||||
<li><a href="https://juce.com/get-juce/#licensing-faq">JUCE Licensing FAQ</a></li></ul>
|
||||
<h3>Events</h3><ul>
|
||||
<li><a href="https://audio.dev">Audio Developer Conference</a></li></ul>
|
||||
</div>
|
||||
<div class="site-sitemap__column" style="flex-basis:33.33%"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="site-footer-bar">
|
||||
<ul class="site-footer-bar__social" aria-label="JUCE on social media">
|
||||
<li><a href="https://github.com/juce-framework/JUCE" aria-label="GitHub"><svg viewBox="0 0 16 16" width="16" height="16" fill="currentColor" aria-hidden="true"><path d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27s1.36.09 2 .27c1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.01 8.01 0 0 0 16 8c0-4.42-3.58-8-8-8z"/></svg></a></li>
|
||||
<li><a href="https://www.youtube.com/c/JUCElibrary" aria-label="YouTube"><svg viewBox="0 0 16 16" width="16" height="16" fill="currentColor" aria-hidden="true"><path d="M15.68 4.06a2 2 0 0 0-1.42-1.42C13 2.3 8 2.3 8 2.3s-5 0-6.26.34A2 2 0 0 0 .32 4.06 21 21 0 0 0 0 8a21 21 0 0 0 .32 3.94 2 2 0 0 0 1.42 1.42C3 13.7 8 13.7 8 13.7s5 0 6.26-.34a2 2 0 0 0 1.42-1.42A21 21 0 0 0 16 8a21 21 0 0 0-.32-3.94zM6.4 10.6V5.4L10.6 8l-4.2 2.6z"/></svg></a></li>
|
||||
<li><a href="https://forum.juce.com/" aria-label="JUCE Forum"><svg viewBox="0 0 24 24" width="16" height="16" fill="none" stroke="currentColor" stroke-width="2" aria-hidden="true"><path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"/><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"/></svg></a></li>
|
||||
</ul>
|
||||
<a class="site-footer-bar__logo" href="https://juce.com" aria-label="JUCE home"><img src="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyBpZD0iYiIgZGF0YS1uYW1lPSJMYXllciAyIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNjYuODciIGhlaWdodD0iMTE1LjUiIHZpZXdCb3g9IjAgMCAyNjYuODcgMTE1LjUiPgogIDxnIGlkPSJjIiBkYXRhLW5hbWU9IkxheWVyIDEiPgogICAgPGc+CiAgICAgIDxnPgogICAgICAgIDxwYXRoIGQ9Ik0xMzIuOCw2My42MWMwLDQuNjctMi41Myw3LjU3LTYuNiw3LjU3LTIuMiwwLTMuODYtLjk1LTUuNzUtMy4zbC0uNTUtLjY4LTUuNDgsNC41MywuNDksLjY2YzIuOTgsNCw2LjU3LDUuODYsMTEuMjksNS44Niw4LjI4LDAsMTQuMDctNi4wMiwxNC4wNy0xNC42NXYtMjUuODRoLTcuNDd2MjUuODRaIiBmaWxsPSIjZmZmIi8+CiAgICAgICAgPHBhdGggZD0iTTE3MS4xOSw2MS4wMmMwLDYuMTctMy40OCwxMC4xNi04Ljg2LDEwLjE2cy04Ljg2LTMuOTktOC44Ni0xMC4xNnYtMjMuMjZoLTcuNDd2MjMuNmMwLDkuNzgsNi43OSwxNi44OSwxNi4xNSwxNi44OXMxNi4xNi03LjA5LDE2LjUtMTYuODl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i4xOCw2LjAzLTIuNCwxMi4wNC00Ljk5LDE4LjA1LTguMjUsMi4wOS0xLjEzLDIuNzMtMy44NCwxLjM4LTUuOC0yLjMxLTMuMzUtNS4yNi02LjI0LTguNjYtOC40OS0yLjIzLTEuNDctNS4yNi0uMzYtNi4wMywyLjE5LTEuOTMsNi40Mi00LjMzLDEyLjM3LTYuODUsMTguMTdaIiBmaWxsPSIjZTc0MjUzIi8+CiAgICAgICAgICA8cGF0aCBkPSJNNDkuNjcsNTYuMzJjLTUuOTUtMi41OC0xMi4wNC01LjAxLTE4LjYyLTYuOTEtMi4zMS0uNjctNC43LC44My01LjA5LDMuMi0uMjcsMS42Ny0uNDIsMy4zOS0uNDIsNS4xNCwwLDIuMzYsLjI2LDQuNjYsLjc1LDYuODcsLjU3LDIuNTcsMy40NiwzLjg3LDUuNzgsMi42NCw1Ljg2LTMuMSwxMS43MS01LjYsMTcuNTQtNy45MSwxLjM2LS41NCwxLjM5LTIuNDUsLjA1LTMuMDNaIiBmaWxsPSIjMDFiNjk5Ii8+CiAgICAgICAgPC9nPgogICAgICAgIDxyZWN0IHdpZHRoPSIyNjYuODciIGhlaWdodD0iMTE1LjUiIGZpbGw9Im5vbmUiLz4KICAgICAgPC9nPgogICAgPC9nPgogIDwvZz4KPC9zdmc+" alt="JUCE" width="160" style="width:160px;height:auto;display:block"/></a>
|
||||
<p class="site-footer-bar__copyright">© Raw Material Software Limited</p>
|
||||
</div>
|
||||
</footer>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
+130
@@ -0,0 +1,130 @@
|
||||
<!-- HTML header for doxygen 1.14.0-->
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="$langISO">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
|
||||
<meta name="generator" content="Doxygen $doxygenversion"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
||||
<!--BEGIN PROJECT_NAME--><title>$projectname: $title</title><!--END PROJECT_NAME-->
|
||||
<!--BEGIN !PROJECT_NAME--><title>$title</title><!--END !PROJECT_NAME-->
|
||||
<!--BEGIN PROJECT_ICON-->
|
||||
<link rel="icon" href="$relpath^$projecticon" type="image/x-icon" />
|
||||
<!--END PROJECT_ICON-->
|
||||
<link href="$relpath^tabs.css" rel="stylesheet" type="text/css"/>
|
||||
<!--BEGIN FULL_SIDEBAR-->
|
||||
<script type="text/javascript">var page_layout=1;</script>
|
||||
<!--END FULL_SIDEBAR-->
|
||||
<script type="text/javascript" src="$relpath^jquery.js"></script>
|
||||
<script type="text/javascript" src="$relpath^dynsections.js"></script>
|
||||
<!--BEGIN COPY_CLIPBOARD-->
|
||||
<script type="text/javascript" src="$relpath^clipboard.js"></script>
|
||||
<!--END COPY_CLIPBOARD-->
|
||||
$treeview
|
||||
$search
|
||||
$mathjax
|
||||
$darkmode
|
||||
<link href="$relpath^$stylesheet" rel="stylesheet" type="text/css" />
|
||||
$extrastylesheet
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com">
|
||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
||||
<link rel="preload" as="style" href="https://fonts.googleapis.com/css?family=Open+Sans:100,200,300,400,500,600,700,800,900|Source+Sans+Pro:100,200,300,400,500,600,700,800,900|Open+Sans:100,200,300,400,500,600,700,800,900|Open+Sans:100,200,300,400,500,600,700,800,900" />
|
||||
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Open+Sans:100,200,300,400,500,600,700,800,900|Source+Sans+Pro:100,200,300,400,500,600,700,800,900|Open+Sans:100,200,300,400,500,600,700,800,900|Open+Sans:100,200,300,400,500,600,700,800,900" />
|
||||
<link href="https://fonts.googleapis.com/css2?family=Inconsolata:wght@200..900&family=Open+Sans:ital,wght@0,300..800;1,300..800&family=Source+Sans+3:ital,wght@0,200..900;1,200..900&display=swap" rel="stylesheet">
|
||||
<script src="https://cdn.usefathom.com/script.js" site="COHIAING" defer></script>
|
||||
<script src="$relpath^highlight.min.js"></script>
|
||||
<script src="$relpath^cpp.min.js"></script>
|
||||
<script>
|
||||
/* fix doxygen's output to allow actual code highlighting */
|
||||
$(function () {
|
||||
$(".fragment").each(function () {
|
||||
const $frag = $(this);
|
||||
|
||||
// Collect only the code lines; ignore tooltips/links/extra html.
|
||||
const lines = $frag.children(".line").map(function () {
|
||||
return $(this).text();
|
||||
}).get();
|
||||
|
||||
const codeText = lines.join("\n");
|
||||
|
||||
// Build <pre><code> and set a language class (or omit for auto-detect).
|
||||
const $code = $("<code>", { class: "language-cpp" }).text(codeText);
|
||||
const $pre = $("<pre>").append($code);
|
||||
|
||||
// Replace the entire fragment with <pre><code>
|
||||
$frag.replaceWith($pre);
|
||||
|
||||
// Highlight the new code element
|
||||
hljs.highlightElement($code[0]);
|
||||
});
|
||||
});
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<header class="juce-site-chrome site-header">
|
||||
<div class="site-header__row">
|
||||
<a class="site-header__logo" href="https://juce.com" aria-label="JUCE home"><img src="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyBpZD0iYiIgZGF0YS1uYW1lPSJMYXllciAyIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNjYuODciIGhlaWdodD0iMTE1LjUiIHZpZXdCb3g9IjAgMCAyNjYuODcgMTE1LjUiPgogIDxnIGlkPSJjIiBkYXRhLW5hbWU9IkxheWVyIDEiPgogICAgPGc+CiAgICAgIDxnPgogICAgICAgIDxwYXRoIGQ9Ik0xMzIuOCw2My42MWMwLDQuNjctMi41Myw3LjU3LTYuNiw3LjU3LTIuMiwwLTMuODYtLjk1LTUuNzUtMy4zbC0uNT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to;display:block"/></a>
|
||||
<div class="site-header__right">
|
||||
<nav class="wp-block-navigation" aria-label="JUCE">
|
||||
<button class="wp-block-navigation__responsive-container-open" aria-label="Open menu" aria-expanded="false">
|
||||
<svg width="24" height="24" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true"><path d="M5 5v1.5h14V5H5zm0 7.8h14v-1.5H5v1.5zM5 19h14v-1.5H5V19z"/></svg>
|
||||
</button>
|
||||
<div class="wp-block-navigation__responsive-container">
|
||||
<button class="wp-block-navigation__responsive-container-close" aria-label="Close menu">
|
||||
<svg width="24" height="24" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true"><path d="m13.06 12 6.47-6.47-1.06-1.06L12 10.94 5.53 4.47 4.47 5.53 10.94 12l-6.47 6.47 1.06 1.06L12 13.06l6.47 6.47 1.06-1.06L13.06 12z"/></svg>
|
||||
</button>
|
||||
<ul class="wp-block-navigation__container">
|
||||
<li class="wp-block-navigation-item has-child"><a class="wp-block-navigation-item__content" href="https://juce.com/whats-new/">Discover</a><span class="wp-block-navigation__submenu-icon" aria-hidden="true"><svg width="10" height="10" viewBox="0 0 12 12" fill="none" stroke="currentColor" stroke-width="1.5"><path d="M1.5 4l4.5 4 4.5-4"/></svg></span>
|
||||
<ul class="wp-block-navigation__submenu-container">
|
||||
<li class="wp-block-navigation-item"><a class="wp-block-navigation-item__content" href="https://juce.com/whats-new/">What’s New</a></li>
|
||||
<li class="wp-block-navigation-item"><a class="wp-block-navigation-item__content" href="https://juce.com/features/">Features</a></li>
|
||||
<li class="wp-block-navigation-item"><a class="wp-block-navigation-item__content" href="https://juce.com/made-with-juce/">Made With JUCE</a></li>
|
||||
<li class="wp-block-navigation-item"><a class="wp-block-navigation-item__content" href="https://juce.com/category/blog/">Blog</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="wp-block-navigation-item has-child"><a class="wp-block-navigation-item__content" href="https://juce.com/learn/documentation/">Learn</a><span class="wp-block-navigation__submenu-icon" aria-hidden="true"><svg width="10" height="10" viewBox="0 0 12 12" fill="none" stroke="currentColor" stroke-width="1.5"><path d="M1.5 4l4.5 4 4.5-4"/></svg></span>
|
||||
<ul class="wp-block-navigation__submenu-container">
|
||||
<li class="wp-block-navigation-item"><a class="wp-block-navigation-item__content" href="https://juce.com/learn/documentation/">Documentation</a></li>
|
||||
<li class="wp-block-navigation-item"><a class="wp-block-navigation-item__content" href="https://juce.com/learn/course/">Course</a></li>
|
||||
<li class="wp-block-navigation-item"><a class="wp-block-navigation-item__content" href="https://juce.com/learn/tutorials/">Tutorials</a></li>
|
||||
<li class="wp-block-navigation-item"><a class="wp-block-navigation-item__content" href="https://juce.com/resources/">Resources</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="wp-block-navigation-item"><a class="wp-block-navigation-item__content" href="https://juce.com/newsletter/">Newsletter</a></li>
|
||||
<li class="wp-block-navigation-item"><a class="wp-block-navigation-item__content" href="https://marketplace.juce.com">Marketplace</a></li>
|
||||
<li class="wp-block-navigation-item"><a class="wp-block-navigation-item__content" href="https://forum.juce.com/">Forum</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</nav>
|
||||
<a class="header-account" href="https://account.juce.com/account/dashboard" aria-label="My account" title="My account">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32" width="30" height="30" fill="none" stroke="currentColor" stroke-width="2.25" aria-hidden="true"><circle cx="16" cy="16" r="14.5"/><circle cx="16" cy="12.5" r="5" fill="currentColor" stroke="none"/><path d="M6.8 25.9a11.5 11.5 0 0 1 18.4 0" fill="currentColor" stroke="none"/></svg>
|
||||
</a>
|
||||
<a class="site-header__cta wp-element-button" href="https://juce.com/get-juce/">Get JUCE</a>
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
<script type="text/javascript">
|
||||
/* juce.com chrome: hamburger toggle (no framework required) */
|
||||
document.addEventListener('click', function (e) {
|
||||
var open = e.target.closest('.site-header .wp-block-navigation__responsive-container-open');
|
||||
var close = e.target.closest('.site-header .wp-block-navigation__responsive-container-close');
|
||||
var modal = document.querySelector('.site-header .wp-block-navigation__responsive-container');
|
||||
if (open && modal) { modal.classList.add('is-menu-open'); document.documentElement.classList.add('juce-menu-open'); open.setAttribute('aria-expanded', 'true'); }
|
||||
if (close && modal) { modal.classList.remove('is-menu-open'); document.documentElement.classList.remove('juce-menu-open'); }
|
||||
});
|
||||
document.addEventListener('keydown', function (e) {
|
||||
if (e.key === 'Escape') {
|
||||
var modal = document.querySelector('.site-header .wp-block-navigation__responsive-container.is-menu-open');
|
||||
if (modal) { modal.classList.remove('is-menu-open'); document.documentElement.classList.remove('juce-menu-open'); }
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
<!--BEGIN FULL_SIDEBAR-->
|
||||
<div id="side-nav" class="ui-resizable side-nav-resizable"><!-- do not remove this div, it is closed by doxygen! -->
|
||||
<!--END FULL_SIDEBAR-->
|
||||
|
||||
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
|
||||
|
||||
<!-- end header part -->
|
||||
+12
@@ -0,0 +1,12 @@
|
||||
<!DOCTYPE html>
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<script language=javascript>
|
||||
function redirect(){
|
||||
window.location = "/master/index.html";
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
<body onload="redirect()">
|
||||
</body>
|
||||
</html>
|
||||
+47
@@ -0,0 +1,47 @@
|
||||
/*! `cpp` grammar compiled for Highlight.js 11.11.1 */
|
||||
(()=>{var e=(()=>{"use strict";return e=>{const t=e.regex,a=e.COMMENT("//","$",{
|
||||
contains:[{begin:/\\\n/}]
|
||||
}),n="decltype\\(auto\\)",r="[a-zA-Z_]\\w*::",i="(?!struct)("+n+"|"+t.optional(r)+"[a-zA-Z_]\\w*"+t.optional("<[^<>]+>")+")",s={
|
||||
className:"type",begin:"\\b[a-z\\d_]*_t\\b"},c={className:"string",variants:[{
|
||||
begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{
|
||||
begin:"(u8?|U|L)?'(\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)|.)",
|
||||
end:"'",illegal:"."},e.END_SAME_AS_BEGIN({
|
||||
begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},o={
|
||||
className:"number",variants:[{
|
||||
begin:"[+-]?(?:(?:[0-9](?:'?[0-9])*\\.(?:[0-9](?:'?[0-9])*)?|\\.[0-9](?:'?[0-9])*)(?:[Ee][+-]?[0-9](?:'?[0-9])*)?|[0-9](?:'?[0-9])*[Ee][+-]?[0-9](?:'?[0-9])*|0[Xx](?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*(?:\\.(?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)?)?|\\.[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)[Pp][+-]?[0-9](?:'?[0-9])*)(?:[Ff](?:16|32|64|128)?|(BF|bf)16|[Ll]|)"
|
||||
},{
|
||||
begin:"[+-]?\\b(?:0[Bb][01](?:'?[01])*|0[Xx][0-9A-Fa-f](?:'?[0-9A-Fa-f])*|0(?:'?[0-7])*|[1-9](?:'?[0-9])*)(?:[Uu](?:LL?|ll?)|[Uu][Zz]?|(?:LL?|ll?)[Uu]?|[Zz][Uu]|)"
|
||||
}],relevance:0},l={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{
|
||||
keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"
|
||||
},contains:[{begin:/\\\n/,relevance:0},e.inherit(c,{className:"string"}),{
|
||||
className:"string",begin:/<.*?>/},a,e.C_BLOCK_COMMENT_MODE]},u={
|
||||
className:"title",begin:t.optional(r)+e.IDENT_RE,relevance:0
|
||||
},d=t.optional(r)+e.IDENT_RE+"\\s*\\(",p={
|
||||
type:["bool","char","char16_t","char32_t","char8_t","double","float","int","long","short","void","wchar_t","unsigned","signed","const","static"],
|
||||
keyword:["alignas","alignof","and","and_eq","asm","atomic_cancel","atomic_commit","atomic_noexcept","auto","bitand","bitor","break","case","catch","class","co_await","co_return","co_yield","compl","concept","const_cast|10","consteval","constexpr","constinit","continue","decltype","default","delete","do","dynamic_cast|10","else","enum","explicit","export","extern","false","final","for","friend","goto","if","import","inline","module","mutable","namespace","new","noexcept","not","not_eq","nullptr","operator","or","or_eq","override","private","protected","public","reflexpr","register","reinterpret_cast|10","requires","return","sizeof","static_assert","static_cast|10","struct","switch","synchronized","template","this","thread_local","throw","transaction_safe","transaction_safe_dynamic","true","try","typedef","typeid","typename","union","using","virtual","volatile","while","xor","xor_eq"],
|
||||
literal:["NULL","false","nullopt","nullptr","true"],built_in:["_Pragma"],
|
||||
_type_hints:["any","auto_ptr","barrier","binary_semaphore","bitset","complex","condition_variable","condition_variable_any","counting_semaphore","deque","false_type","flat_map","flat_set","future","imaginary","initializer_list","istringstream","jthread","latch","lock_guard","multimap","multiset","mutex","optional","ostringstream","packaged_task","pair","promise","priority_queue","queue","recursive_mutex","recursive_timed_mutex","scoped_lock","set","shared_future","shared_lock","shared_mutex","shared_timed_mutex","shared_ptr","stack","string_view","stringstream","timed_mutex","thread","true_type","tuple","unique_lock","unique_ptr","unordered_map","unordered_multimap","unordered_multiset","unordered_set","variant","vector","weak_ptr","wstring","wstring_view"]
|
||||
},_={className:"function.dispatch",relevance:0,keywords:{
|
||||
_hint:["abort","abs","acos","apply","as_const","asin","atan","atan2","calloc","ceil","cerr","cin","clog","cos","cosh","cout","declval","endl","exchange","exit","exp","fabs","floor","fmod","forward","fprintf","fputs","free","frexp","fscanf","future","invoke","isalnum","isalpha","iscntrl","isdigit","isgraph","islower","isprint","ispunct","isspace","isupper","isxdigit","labs","launder","ldexp","log","log10","make_pair","make_shared","make_shared_for_overwrite","make_tuple","make_unique","malloc","memchr","memcmp","memcpy","memset","modf","move","pow","printf","putchar","puts","realloc","scanf","sin","sinh","snprintf","sprintf","sqrt","sscanf","std","stderr","stdin","stdout","strcat","strchr","strcmp","strcpy","strcspn","strlen","strncat","strncmp","strncpy","strpbrk","strrchr","strspn","strstr","swap","tan","tanh","terminate","to_underlying","tolower","toupper","vfprintf","visit","vprintf","vsprintf"]
|
||||
},
|
||||
begin:t.concat(/\b/,/(?!decltype)/,/(?!if)/,/(?!for)/,/(?!switch)/,/(?!while)/,e.IDENT_RE,t.lookahead(/(<[^<>]+>|)\s*\(/))
|
||||
},m=[_,l,s,a,e.C_BLOCK_COMMENT_MODE,o,c],f={variants:[{begin:/=/,end:/;/},{
|
||||
begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],
|
||||
keywords:p,contains:m.concat([{begin:/\(/,end:/\)/,keywords:p,
|
||||
contains:m.concat(["self"]),relevance:0}]),relevance:0},g={className:"function",
|
||||
begin:"("+i+"[\\*&\\s]+)+"+d,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,
|
||||
keywords:p,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:n,keywords:p,relevance:0},{
|
||||
begin:d,returnBegin:!0,contains:[u],relevance:0},{begin:/::/,relevance:0},{
|
||||
begin:/:/,endsWithParent:!0,contains:[c,o]},{relevance:0,match:/,/},{
|
||||
className:"params",begin:/\(/,end:/\)/,keywords:p,relevance:0,
|
||||
contains:[a,e.C_BLOCK_COMMENT_MODE,c,o,s,{begin:/\(/,end:/\)/,keywords:p,
|
||||
relevance:0,contains:["self",a,e.C_BLOCK_COMMENT_MODE,c,o,s]}]
|
||||
},s,a,e.C_BLOCK_COMMENT_MODE,l]};return{name:"C++",
|
||||
aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:p,illegal:"</",
|
||||
classNameAliases:{"function.dispatch":"built_in"},
|
||||
contains:[].concat(f,g,_,m,[l,{
|
||||
begin:"\\b(deque|list|queue|priority_queue|pair|stack|vector|map|set|bitset|multiset|multimap|unordered_map|unordered_set|unordered_multiset|unordered_multimap|array|tuple|optional|variant|function|flat_map|flat_set)\\s*<(?!<)",
|
||||
end:">",keywords:p,contains:["self",s]},{begin:e.IDENT_RE+"::",keywords:p},{
|
||||
match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/],
|
||||
className:{1:"keyword",3:"title.class"}}])}}})();hljs.registerLanguage("cpp",e)
|
||||
})();
|
||||
+354
@@ -0,0 +1,354 @@
|
||||
/*!
|
||||
Highlight.js v11.11.1 (git: 08cb242e7d)
|
||||
(c) 2006-2025 Josh Goebel <hello@joshgoebel.com> and other contributors
|
||||
License: BSD-3-Clause
|
||||
*/
|
||||
var hljs=function(){"use strict";function e(t){
|
||||
return t instanceof Map?t.clear=t.delete=t.set=()=>{
|
||||
throw Error("map is read-only")}:t instanceof Set&&(t.add=t.clear=t.delete=()=>{
|
||||
throw Error("set is read-only")
|
||||
}),Object.freeze(t),Object.getOwnPropertyNames(t).forEach((n=>{
|
||||
const i=t[n],s=typeof i;"object"!==s&&"function"!==s||Object.isFrozen(i)||e(i)
|
||||
})),t}class t{constructor(e){
|
||||
void 0===e.data&&(e.data={}),this.data=e.data,this.isMatchIgnored=!1}
|
||||
ignoreMatch(){this.isMatchIgnored=!0}}function n(e){
|
||||
return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")
|
||||
}function i(e,...t){const n=Object.create(null);for(const t in e)n[t]=e[t]
|
||||
;return t.forEach((e=>{for(const t in e)n[t]=e[t]})),n}const s=e=>!!e.scope
|
||||
;class r{constructor(e,t){
|
||||
this.buffer="",this.classPrefix=t.classPrefix,e.walk(this)}addText(e){
|
||||
this.buffer+=n(e)}openNode(e){if(!s(e))return;const t=((e,{prefix:t})=>{
|
||||
if(e.startsWith("language:"))return e.replace("language:","language-")
|
||||
;if(e.includes(".")){const n=e.split(".")
|
||||
;return[`${t}${n.shift()}`,...n.map(((e,t)=>`${e}${"_".repeat(t+1)}`))].join(" ")
|
||||
}return`${t}${e}`})(e.scope,{prefix:this.classPrefix});this.span(t)}
|
||||
closeNode(e){s(e)&&(this.buffer+="</span>")}value(){return this.buffer}span(e){
|
||||
this.buffer+=`<span class="${e}">`}}const o=(e={})=>{const t={children:[]}
|
||||
;return Object.assign(t,e),t};class a{constructor(){
|
||||
this.rootNode=o(),this.stack=[this.rootNode]}get top(){
|
||||
return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(e){
|
||||
this.top.children.push(e)}openNode(e){const t=o({scope:e})
|
||||
;this.add(t),this.stack.push(t)}closeNode(){
|
||||
if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){
|
||||
for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}
|
||||
walk(e){return this.constructor._walk(e,this.rootNode)}static _walk(e,t){
|
||||
return"string"==typeof t?e.addText(t):t.children&&(e.openNode(t),
|
||||
t.children.forEach((t=>this._walk(e,t))),e.closeNode(t)),e}static _collapse(e){
|
||||
"string"!=typeof e&&e.children&&(e.children.every((e=>"string"==typeof e))?e.children=[e.children.join("")]:e.children.forEach((e=>{
|
||||
a._collapse(e)})))}}class c extends a{constructor(e){super(),this.options=e}
|
||||
addText(e){""!==e&&this.add(e)}startScope(e){this.openNode(e)}endScope(){
|
||||
this.closeNode()}__addSublanguage(e,t){const n=e.root
|
||||
;t&&(n.scope="language:"+t),this.add(n)}toHTML(){
|
||||
return new r(this,this.options).value()}finalize(){
|
||||
return this.closeAllNodes(),!0}}function l(e){
|
||||
return e?"string"==typeof e?e:e.source:null}function g(e){return h("(?=",e,")")}
|
||||
function u(e){return h("(?:",e,")*")}function d(e){return h("(?:",e,")?")}
|
||||
function h(...e){return e.map((e=>l(e))).join("")}function f(...e){const t=(e=>{
|
||||
const t=e[e.length-1]
|
||||
;return"object"==typeof t&&t.constructor===Object?(e.splice(e.length-1,1),t):{}
|
||||
})(e);return"("+(t.capture?"":"?:")+e.map((e=>l(e))).join("|")+")"}
|
||||
function p(e){return RegExp(e.toString()+"|").exec("").length-1}
|
||||
const b=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./
|
||||
;function m(e,{joinWith:t}){let n=0;return e.map((e=>{n+=1;const t=n
|
||||
;let i=l(e),s="";for(;i.length>0;){const e=b.exec(i);if(!e){s+=i;break}
|
||||
s+=i.substring(0,e.index),
|
||||
i=i.substring(e.index+e[0].length),"\\"===e[0][0]&&e[1]?s+="\\"+(Number(e[1])+t):(s+=e[0],
|
||||
"("===e[0]&&n++)}return s})).map((e=>`(${e})`)).join(t)}
|
||||
const E="[a-zA-Z]\\w*",x="[a-zA-Z_]\\w*",y="\\b\\d+(\\.\\d+)?",_="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",w="\\b(0b[01]+)",O={
|
||||
begin:"\\\\[\\s\\S]",relevance:0},v={scope:"string",begin:"'",end:"'",
|
||||
illegal:"\\n",contains:[O]},k={scope:"string",begin:'"',end:'"',illegal:"\\n",
|
||||
contains:[O]},N=(e,t,n={})=>{const s=i({scope:"comment",begin:e,end:t,
|
||||
contains:[]},n);s.contains.push({scope:"doctag",
|
||||
begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",
|
||||
end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0})
|
||||
;const r=f("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/)
|
||||
;return s.contains.push({begin:h(/[ ]+/,"(",r,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),s
|
||||
},S=N("//","$"),M=N("/\\*","\\*/"),R=N("#","$");var j=Object.freeze({
|
||||
__proto__:null,APOS_STRING_MODE:v,BACKSLASH_ESCAPE:O,BINARY_NUMBER_MODE:{
|
||||
scope:"number",begin:w,relevance:0},BINARY_NUMBER_RE:w,COMMENT:N,
|
||||
C_BLOCK_COMMENT_MODE:M,C_LINE_COMMENT_MODE:S,C_NUMBER_MODE:{scope:"number",
|
||||
begin:_,relevance:0},C_NUMBER_RE:_,END_SAME_AS_BEGIN:e=>Object.assign(e,{
|
||||
"on:begin":(e,t)=>{t.data._beginMatch=e[1]},"on:end":(e,t)=>{
|
||||
t.data._beginMatch!==e[1]&&t.ignoreMatch()}}),HASH_COMMENT_MODE:R,IDENT_RE:E,
|
||||
MATCH_NOTHING_RE:/\b\B/,METHOD_GUARD:{begin:"\\.\\s*"+x,relevance:0},
|
||||
NUMBER_MODE:{scope:"number",begin:y,relevance:0},NUMBER_RE:y,
|
||||
PHRASAL_WORDS_MODE:{
|
||||
begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/
|
||||
},QUOTE_STRING_MODE:k,REGEXP_MODE:{scope:"regexp",begin:/\/(?=[^/\n]*\/)/,
|
||||
end:/\/[gimuy]*/,contains:[O,{begin:/\[/,end:/\]/,relevance:0,contains:[O]}]},
|
||||
RE_STARTERS_RE:"!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",
|
||||
SHEBANG:(e={})=>{const t=/^#![ ]*\//
|
||||
;return e.binary&&(e.begin=h(t,/.*\b/,e.binary,/\b.*/)),i({scope:"meta",begin:t,
|
||||
end:/$/,relevance:0,"on:begin":(e,t)=>{0!==e.index&&t.ignoreMatch()}},e)},
|
||||
TITLE_MODE:{scope:"title",begin:E,relevance:0},UNDERSCORE_IDENT_RE:x,
|
||||
UNDERSCORE_TITLE_MODE:{scope:"title",begin:x,relevance:0}});function A(e,t){
|
||||
"."===e.input[e.index-1]&&t.ignoreMatch()}function I(e,t){
|
||||
void 0!==e.className&&(e.scope=e.className,delete e.className)}function T(e,t){
|
||||
t&&e.beginKeywords&&(e.begin="\\b("+e.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",
|
||||
e.__beforeBegin=A,e.keywords=e.keywords||e.beginKeywords,delete e.beginKeywords,
|
||||
void 0===e.relevance&&(e.relevance=0))}function L(e,t){
|
||||
Array.isArray(e.illegal)&&(e.illegal=f(...e.illegal))}function B(e,t){
|
||||
if(e.match){
|
||||
if(e.begin||e.end)throw Error("begin & end are not supported with match")
|
||||
;e.begin=e.match,delete e.match}}function P(e,t){
|
||||
void 0===e.relevance&&(e.relevance=1)}const D=(e,t)=>{if(!e.beforeMatch)return
|
||||
;if(e.starts)throw Error("beforeMatch cannot be used with starts")
|
||||
;const n=Object.assign({},e);Object.keys(e).forEach((t=>{delete e[t]
|
||||
})),e.keywords=n.keywords,e.begin=h(n.beforeMatch,g(n.begin)),e.starts={
|
||||
relevance:0,contains:[Object.assign(n,{endsParent:!0})]
|
||||
},e.relevance=0,delete n.beforeMatch
|
||||
},H=["of","and","for","in","not","or","if","then","parent","list","value"]
|
||||
;function C(e,t,n="keyword"){const i=Object.create(null)
|
||||
;return"string"==typeof e?s(n,e.split(" ")):Array.isArray(e)?s(n,e):Object.keys(e).forEach((n=>{
|
||||
Object.assign(i,C(e[n],t,n))})),i;function s(e,n){
|
||||
t&&(n=n.map((e=>e.toLowerCase()))),n.forEach((t=>{const n=t.split("|")
|
||||
;i[n[0]]=[e,$(n[0],n[1])]}))}}function $(e,t){
|
||||
return t?Number(t):(e=>H.includes(e.toLowerCase()))(e)?0:1}const U={},z=e=>{
|
||||
console.error(e)},W=(e,...t)=>{console.log("WARN: "+e,...t)},X=(e,t)=>{
|
||||
U[`${e}/${t}`]||(console.log(`Deprecated as of ${e}. ${t}`),U[`${e}/${t}`]=!0)
|
||||
},G=Error();function K(e,t,{key:n}){let i=0;const s=e[n],r={},o={}
|
||||
;for(let e=1;e<=t.length;e++)o[e+i]=s[e],r[e+i]=!0,i+=p(t[e-1])
|
||||
;e[n]=o,e[n]._emit=r,e[n]._multi=!0}function F(e){(e=>{
|
||||
e.scope&&"object"==typeof e.scope&&null!==e.scope&&(e.beginScope=e.scope,
|
||||
delete e.scope)})(e),"string"==typeof e.beginScope&&(e.beginScope={
|
||||
_wrap:e.beginScope}),"string"==typeof e.endScope&&(e.endScope={_wrap:e.endScope
|
||||
}),(e=>{if(Array.isArray(e.begin)){
|
||||
if(e.skip||e.excludeBegin||e.returnBegin)throw z("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),
|
||||
G
|
||||
;if("object"!=typeof e.beginScope||null===e.beginScope)throw z("beginScope must be object"),
|
||||
G;K(e,e.begin,{key:"beginScope"}),e.begin=m(e.begin,{joinWith:""})}})(e),(e=>{
|
||||
if(Array.isArray(e.end)){
|
||||
if(e.skip||e.excludeEnd||e.returnEnd)throw z("skip, excludeEnd, returnEnd not compatible with endScope: {}"),
|
||||
G
|
||||
;if("object"!=typeof e.endScope||null===e.endScope)throw z("endScope must be object"),
|
||||
G;K(e,e.end,{key:"endScope"}),e.end=m(e.end,{joinWith:""})}})(e)}function Z(e){
|
||||
function t(t,n){
|
||||
return RegExp(l(t),"m"+(e.case_insensitive?"i":"")+(e.unicodeRegex?"u":"")+(n?"g":""))
|
||||
}class n{constructor(){
|
||||
this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}
|
||||
addRule(e,t){
|
||||
t.position=this.position++,this.matchIndexes[this.matchAt]=t,this.regexes.push([t,e]),
|
||||
this.matchAt+=p(e)+1}compile(){0===this.regexes.length&&(this.exec=()=>null)
|
||||
;const e=this.regexes.map((e=>e[1]));this.matcherRe=t(m(e,{joinWith:"|"
|
||||
}),!0),this.lastIndex=0}exec(e){this.matcherRe.lastIndex=this.lastIndex
|
||||
;const t=this.matcherRe.exec(e);if(!t)return null
|
||||
;const n=t.findIndex(((e,t)=>t>0&&void 0!==e)),i=this.matchIndexes[n]
|
||||
;return t.splice(0,n),Object.assign(t,i)}}class s{constructor(){
|
||||
this.rules=[],this.multiRegexes=[],
|
||||
this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(e){
|
||||
if(this.multiRegexes[e])return this.multiRegexes[e];const t=new n
|
||||
;return this.rules.slice(e).forEach((([e,n])=>t.addRule(e,n))),
|
||||
t.compile(),this.multiRegexes[e]=t,t}resumingScanAtSamePosition(){
|
||||
return 0!==this.regexIndex}considerAll(){this.regexIndex=0}addRule(e,t){
|
||||
this.rules.push([e,t]),"begin"===t.type&&this.count++}exec(e){
|
||||
const t=this.getMatcher(this.regexIndex);t.lastIndex=this.lastIndex
|
||||
;let n=t.exec(e)
|
||||
;if(this.resumingScanAtSamePosition())if(n&&n.index===this.lastIndex);else{
|
||||
const t=this.getMatcher(0);t.lastIndex=this.lastIndex+1,n=t.exec(e)}
|
||||
return n&&(this.regexIndex+=n.position+1,
|
||||
this.regexIndex===this.count&&this.considerAll()),n}}
|
||||
if(e.compilerExtensions||(e.compilerExtensions=[]),
|
||||
e.contains&&e.contains.includes("self"))throw Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.")
|
||||
;return e.classNameAliases=i(e.classNameAliases||{}),function n(r,o){const a=r
|
||||
;if(r.isCompiled)return a
|
||||
;[I,B,F,D].forEach((e=>e(r,o))),e.compilerExtensions.forEach((e=>e(r,o))),
|
||||
r.__beforeBegin=null,[T,L,P].forEach((e=>e(r,o))),r.isCompiled=!0;let c=null
|
||||
;return"object"==typeof r.keywords&&r.keywords.$pattern&&(r.keywords=Object.assign({},r.keywords),
|
||||
c=r.keywords.$pattern,
|
||||
delete r.keywords.$pattern),c=c||/\w+/,r.keywords&&(r.keywords=C(r.keywords,e.case_insensitive)),
|
||||
a.keywordPatternRe=t(c,!0),
|
||||
o&&(r.begin||(r.begin=/\B|\b/),a.beginRe=t(a.begin),r.end||r.endsWithParent||(r.end=/\B|\b/),
|
||||
r.end&&(a.endRe=t(a.end)),
|
||||
a.terminatorEnd=l(a.end)||"",r.endsWithParent&&o.terminatorEnd&&(a.terminatorEnd+=(r.end?"|":"")+o.terminatorEnd)),
|
||||
r.illegal&&(a.illegalRe=t(r.illegal)),
|
||||
r.contains||(r.contains=[]),r.contains=[].concat(...r.contains.map((e=>(e=>(e.variants&&!e.cachedVariants&&(e.cachedVariants=e.variants.map((t=>i(e,{
|
||||
variants:null},t)))),e.cachedVariants?e.cachedVariants:V(e)?i(e,{
|
||||
starts:e.starts?i(e.starts):null
|
||||
}):Object.isFrozen(e)?i(e):e))("self"===e?r:e)))),r.contains.forEach((e=>{n(e,a)
|
||||
})),r.starts&&n(r.starts,o),a.matcher=(e=>{const t=new s
|
||||
;return e.contains.forEach((e=>t.addRule(e.begin,{rule:e,type:"begin"
|
||||
}))),e.terminatorEnd&&t.addRule(e.terminatorEnd,{type:"end"
|
||||
}),e.illegal&&t.addRule(e.illegal,{type:"illegal"}),t})(a),a}(e)}function V(e){
|
||||
return!!e&&(e.endsWithParent||V(e.starts))}class q extends Error{
|
||||
constructor(e,t){super(e),this.name="HTMLInjectionError",this.html=t}}
|
||||
const J=n,Y=i,Q=Symbol("nomatch"),ee=n=>{
|
||||
const i=Object.create(null),s=Object.create(null),r=[];let o=!0
|
||||
;const a="Could not find the language '{}', did you forget to load/include a language module?",l={
|
||||
disableAutodetect:!0,name:"Plain text",contains:[]};let p={
|
||||
ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,
|
||||
languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",
|
||||
cssSelector:"pre code",languages:null,__emitter:c};function b(e){
|
||||
return p.noHighlightRe.test(e)}function m(e,t,n){let i="",s=""
|
||||
;"object"==typeof t?(i=e,
|
||||
n=t.ignoreIllegals,s=t.language):(X("10.7.0","highlight(lang, code, ...args) has been deprecated."),
|
||||
X("10.7.0","Please use highlight(code, options) instead.\nhttps://github.com/highlightjs/highlight.js/issues/2277"),
|
||||
s=e,i=t),void 0===n&&(n=!0);const r={code:i,language:s};N("before:highlight",r)
|
||||
;const o=r.result?r.result:E(r.language,r.code,n)
|
||||
;return o.code=r.code,N("after:highlight",o),o}function E(e,n,s,r){
|
||||
const c=Object.create(null);function l(){if(!N.keywords)return void M.addText(R)
|
||||
;let e=0;N.keywordPatternRe.lastIndex=0;let t=N.keywordPatternRe.exec(R),n=""
|
||||
;for(;t;){n+=R.substring(e,t.index)
|
||||
;const s=w.case_insensitive?t[0].toLowerCase():t[0],r=(i=s,N.keywords[i]);if(r){
|
||||
const[e,i]=r
|
||||
;if(M.addText(n),n="",c[s]=(c[s]||0)+1,c[s]<=7&&(j+=i),e.startsWith("_"))n+=t[0];else{
|
||||
const n=w.classNameAliases[e]||e;u(t[0],n)}}else n+=t[0]
|
||||
;e=N.keywordPatternRe.lastIndex,t=N.keywordPatternRe.exec(R)}var i
|
||||
;n+=R.substring(e),M.addText(n)}function g(){null!=N.subLanguage?(()=>{
|
||||
if(""===R)return;let e=null;if("string"==typeof N.subLanguage){
|
||||
if(!i[N.subLanguage])return void M.addText(R)
|
||||
;e=E(N.subLanguage,R,!0,S[N.subLanguage]),S[N.subLanguage]=e._top
|
||||
}else e=x(R,N.subLanguage.length?N.subLanguage:null)
|
||||
;N.relevance>0&&(j+=e.relevance),M.__addSublanguage(e._emitter,e.language)
|
||||
})():l(),R=""}function u(e,t){
|
||||
""!==e&&(M.startScope(t),M.addText(e),M.endScope())}function d(e,t){let n=1
|
||||
;const i=t.length-1;for(;n<=i;){if(!e._emit[n]){n++;continue}
|
||||
const i=w.classNameAliases[e[n]]||e[n],s=t[n];i?u(s,i):(R=s,l(),R=""),n++}}
|
||||
function h(e,t){
|
||||
return e.scope&&"string"==typeof e.scope&&M.openNode(w.classNameAliases[e.scope]||e.scope),
|
||||
e.beginScope&&(e.beginScope._wrap?(u(R,w.classNameAliases[e.beginScope._wrap]||e.beginScope._wrap),
|
||||
R=""):e.beginScope._multi&&(d(e.beginScope,t),R="")),N=Object.create(e,{parent:{
|
||||
value:N}}),N}function f(e,n,i){let s=((e,t)=>{const n=e&&e.exec(t)
|
||||
;return n&&0===n.index})(e.endRe,i);if(s){if(e["on:end"]){const i=new t(e)
|
||||
;e["on:end"](n,i),i.isMatchIgnored&&(s=!1)}if(s){
|
||||
for(;e.endsParent&&e.parent;)e=e.parent;return e}}
|
||||
if(e.endsWithParent)return f(e.parent,n,i)}function b(e){
|
||||
return 0===N.matcher.regexIndex?(R+=e[0],1):(T=!0,0)}function m(e){
|
||||
const t=e[0],i=n.substring(e.index),s=f(N,e,i);if(!s)return Q;const r=N
|
||||
;N.endScope&&N.endScope._wrap?(g(),
|
||||
u(t,N.endScope._wrap)):N.endScope&&N.endScope._multi?(g(),
|
||||
d(N.endScope,e)):r.skip?R+=t:(r.returnEnd||r.excludeEnd||(R+=t),
|
||||
g(),r.excludeEnd&&(R=t));do{
|
||||
N.scope&&M.closeNode(),N.skip||N.subLanguage||(j+=N.relevance),N=N.parent
|
||||
}while(N!==s.parent);return s.starts&&h(s.starts,e),r.returnEnd?0:t.length}
|
||||
let y={};function _(i,r){const a=r&&r[0];if(R+=i,null==a)return g(),0
|
||||
;if("begin"===y.type&&"end"===r.type&&y.index===r.index&&""===a){
|
||||
if(R+=n.slice(r.index,r.index+1),!o){const t=Error(`0 width match regex (${e})`)
|
||||
;throw t.languageName=e,t.badRule=y.rule,t}return 1}
|
||||
if(y=r,"begin"===r.type)return(e=>{
|
||||
const n=e[0],i=e.rule,s=new t(i),r=[i.__beforeBegin,i["on:begin"]]
|
||||
;for(const t of r)if(t&&(t(e,s),s.isMatchIgnored))return b(n)
|
||||
;return i.skip?R+=n:(i.excludeBegin&&(R+=n),
|
||||
g(),i.returnBegin||i.excludeBegin||(R=n)),h(i,e),i.returnBegin?0:n.length})(r)
|
||||
;if("illegal"===r.type&&!s){
|
||||
const e=Error('Illegal lexeme "'+a+'" for mode "'+(N.scope||"<unnamed>")+'"')
|
||||
;throw e.mode=N,e}if("end"===r.type){const e=m(r);if(e!==Q)return e}
|
||||
if("illegal"===r.type&&""===a)return R+="\n",1
|
||||
;if(I>1e5&&I>3*r.index)throw Error("potential infinite loop, way more iterations than matches")
|
||||
;return R+=a,a.length}const w=O(e)
|
||||
;if(!w)throw z(a.replace("{}",e)),Error('Unknown language: "'+e+'"')
|
||||
;const v=Z(w);let k="",N=r||v;const S={},M=new p.__emitter(p);(()=>{const e=[]
|
||||
;for(let t=N;t!==w;t=t.parent)t.scope&&e.unshift(t.scope)
|
||||
;e.forEach((e=>M.openNode(e)))})();let R="",j=0,A=0,I=0,T=!1;try{
|
||||
if(w.__emitTokens)w.__emitTokens(n,M);else{for(N.matcher.considerAll();;){
|
||||
I++,T?T=!1:N.matcher.considerAll(),N.matcher.lastIndex=A
|
||||
;const e=N.matcher.exec(n);if(!e)break;const t=_(n.substring(A,e.index),e)
|
||||
;A=e.index+t}_(n.substring(A))}return M.finalize(),k=M.toHTML(),{language:e,
|
||||
value:k,relevance:j,illegal:!1,_emitter:M,_top:N}}catch(t){
|
||||
if(t.message&&t.message.includes("Illegal"))return{language:e,value:J(n),
|
||||
illegal:!0,relevance:0,_illegalBy:{message:t.message,index:A,
|
||||
context:n.slice(A-100,A+100),mode:t.mode,resultSoFar:k},_emitter:M};if(o)return{
|
||||
language:e,value:J(n),illegal:!1,relevance:0,errorRaised:t,_emitter:M,_top:N}
|
||||
;throw t}}function x(e,t){t=t||p.languages||Object.keys(i);const n=(e=>{
|
||||
const t={value:J(e),illegal:!1,relevance:0,_top:l,_emitter:new p.__emitter(p)}
|
||||
;return t._emitter.addText(e),t})(e),s=t.filter(O).filter(k).map((t=>E(t,e,!1)))
|
||||
;s.unshift(n);const r=s.sort(((e,t)=>{
|
||||
if(e.relevance!==t.relevance)return t.relevance-e.relevance
|
||||
;if(e.language&&t.language){if(O(e.language).supersetOf===t.language)return 1
|
||||
;if(O(t.language).supersetOf===e.language)return-1}return 0})),[o,a]=r,c=o
|
||||
;return c.secondBest=a,c}function y(e){let t=null;const n=(e=>{
|
||||
let t=e.className+" ";t+=e.parentNode?e.parentNode.className:""
|
||||
;const n=p.languageDetectRe.exec(t);if(n){const t=O(n[1])
|
||||
;return t||(W(a.replace("{}",n[1])),
|
||||
W("Falling back to no-highlight mode for this block.",e)),t?n[1]:"no-highlight"}
|
||||
return t.split(/\s+/).find((e=>b(e)||O(e)))})(e);if(b(n))return
|
||||
;if(N("before:highlightElement",{el:e,language:n
|
||||
}),e.dataset.highlighted)return void console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",e)
|
||||
;if(e.children.length>0&&(p.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),
|
||||
console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),
|
||||
console.warn("The element with unescaped HTML:"),
|
||||
console.warn(e)),p.throwUnescapedHTML))throw new q("One of your code blocks includes unescaped HTML.",e.innerHTML)
|
||||
;t=e;const i=t.textContent,r=n?m(i,{language:n,ignoreIllegals:!0}):x(i)
|
||||
;e.innerHTML=r.value,e.dataset.highlighted="yes",((e,t,n)=>{const i=t&&s[t]||n
|
||||
;e.classList.add("hljs"),e.classList.add("language-"+i)
|
||||
})(e,n,r.language),e.result={language:r.language,re:r.relevance,
|
||||
relevance:r.relevance},r.secondBest&&(e.secondBest={
|
||||
language:r.secondBest.language,relevance:r.secondBest.relevance
|
||||
}),N("after:highlightElement",{el:e,result:r,text:i})}let _=!1;function w(){
|
||||
if("loading"===document.readyState)return _||window.addEventListener("DOMContentLoaded",(()=>{
|
||||
w()}),!1),void(_=!0);document.querySelectorAll(p.cssSelector).forEach(y)}
|
||||
function O(e){return e=(e||"").toLowerCase(),i[e]||i[s[e]]}
|
||||
function v(e,{languageName:t}){"string"==typeof e&&(e=[e]),e.forEach((e=>{
|
||||
s[e.toLowerCase()]=t}))}function k(e){const t=O(e)
|
||||
;return t&&!t.disableAutodetect}function N(e,t){const n=e;r.forEach((e=>{
|
||||
e[n]&&e[n](t)}))}Object.assign(n,{highlight:m,highlightAuto:x,highlightAll:w,
|
||||
highlightElement:y,
|
||||
highlightBlock:e=>(X("10.7.0","highlightBlock will be removed entirely in v12.0"),
|
||||
X("10.7.0","Please use highlightElement now."),y(e)),configure:e=>{p=Y(p,e)},
|
||||
initHighlighting:()=>{
|
||||
w(),X("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")},
|
||||
initHighlightingOnLoad:()=>{
|
||||
w(),X("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")
|
||||
},registerLanguage:(e,t)=>{let s=null;try{s=t(n)}catch(t){
|
||||
if(z("Language definition for '{}' could not be registered.".replace("{}",e)),
|
||||
!o)throw t;z(t),s=l}
|
||||
s.name||(s.name=e),i[e]=s,s.rawDefinition=t.bind(null,n),s.aliases&&v(s.aliases,{
|
||||
languageName:e})},unregisterLanguage:e=>{delete i[e]
|
||||
;for(const t of Object.keys(s))s[t]===e&&delete s[t]},
|
||||
listLanguages:()=>Object.keys(i),getLanguage:O,registerAliases:v,
|
||||
autoDetection:k,inherit:Y,addPlugin:e=>{(e=>{
|
||||
e["before:highlightBlock"]&&!e["before:highlightElement"]&&(e["before:highlightElement"]=t=>{
|
||||
e["before:highlightBlock"](Object.assign({block:t.el},t))
|
||||
}),e["after:highlightBlock"]&&!e["after:highlightElement"]&&(e["after:highlightElement"]=t=>{
|
||||
e["after:highlightBlock"](Object.assign({block:t.el},t))})})(e),r.push(e)},
|
||||
removePlugin:e=>{const t=r.indexOf(e);-1!==t&&r.splice(t,1)}}),n.debugMode=()=>{
|
||||
o=!1},n.safeMode=()=>{o=!0},n.versionString="11.11.1",n.regex={concat:h,
|
||||
lookahead:g,either:f,optional:d,anyNumberOfTimes:u}
|
||||
;for(const t in j)"object"==typeof j[t]&&e(j[t]);return Object.assign(n,j),n
|
||||
},te=ee({});return te.newInstance=()=>ee({}),te}()
|
||||
;"object"==typeof exports&&"undefined"!=typeof module&&(module.exports=hljs);/*! `cpp` grammar compiled for Highlight.js 11.11.1 */
|
||||
(()=>{var e=(()=>{"use strict";return e=>{const t=e.regex,a=e.COMMENT("//","$",{
|
||||
contains:[{begin:/\\\n/}]
|
||||
}),n="decltype\\(auto\\)",r="[a-zA-Z_]\\w*::",i="(?!struct)("+n+"|"+t.optional(r)+"[a-zA-Z_]\\w*"+t.optional("<[^<>]+>")+")",s={
|
||||
className:"type",begin:"\\b[a-z\\d_]*_t\\b"},c={className:"string",variants:[{
|
||||
begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{
|
||||
begin:"(u8?|U|L)?'(\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)|.)",
|
||||
end:"'",illegal:"."},e.END_SAME_AS_BEGIN({
|
||||
begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},o={
|
||||
className:"number",variants:[{
|
||||
begin:"[+-]?(?:(?:[0-9](?:'?[0-9])*\\.(?:[0-9](?:'?[0-9])*)?|\\.[0-9](?:'?[0-9])*)(?:[Ee][+-]?[0-9](?:'?[0-9])*)?|[0-9](?:'?[0-9])*[Ee][+-]?[0-9](?:'?[0-9])*|0[Xx](?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*(?:\\.(?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)?)?|\\.[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)[Pp][+-]?[0-9](?:'?[0-9])*)(?:[Ff](?:16|32|64|128)?|(BF|bf)16|[Ll]|)"
|
||||
},{
|
||||
begin:"[+-]?\\b(?:0[Bb][01](?:'?[01])*|0[Xx][0-9A-Fa-f](?:'?[0-9A-Fa-f])*|0(?:'?[0-7])*|[1-9](?:'?[0-9])*)(?:[Uu](?:LL?|ll?)|[Uu][Zz]?|(?:LL?|ll?)[Uu]?|[Zz][Uu]|)"
|
||||
}],relevance:0},l={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{
|
||||
keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"
|
||||
},contains:[{begin:/\\\n/,relevance:0},e.inherit(c,{className:"string"}),{
|
||||
className:"string",begin:/<.*?>/},a,e.C_BLOCK_COMMENT_MODE]},u={
|
||||
className:"title",begin:t.optional(r)+e.IDENT_RE,relevance:0
|
||||
},d=t.optional(r)+e.IDENT_RE+"\\s*\\(",p={
|
||||
type:["bool","char","char16_t","char32_t","char8_t","double","float","int","long","short","void","wchar_t","unsigned","signed","const","static"],
|
||||
keyword:["alignas","alignof","and","and_eq","asm","atomic_cancel","atomic_commit","atomic_noexcept","auto","bitand","bitor","break","case","catch","class","co_await","co_return","co_yield","compl","concept","const_cast|10","consteval","constexpr","constinit","continue","decltype","default","delete","do","dynamic_cast|10","else","enum","explicit","export","extern","false","final","for","friend","goto","if","import","inline","module","mutable","namespace","new","noexcept","not","not_eq","nullptr","operator","or","or_eq","override","private","protected","public","reflexpr","register","reinterpret_cast|10","requires","return","sizeof","static_assert","static_cast|10","struct","switch","synchronized","template","this","thread_local","throw","transaction_safe","transaction_safe_dynamic","true","try","typedef","typeid","typename","union","using","virtual","volatile","while","xor","xor_eq"],
|
||||
literal:["NULL","false","nullopt","nullptr","true"],built_in:["_Pragma"],
|
||||
_type_hints:["any","auto_ptr","barrier","binary_semaphore","bitset","complex","condition_variable","condition_variable_any","counting_semaphore","deque","false_type","flat_map","flat_set","future","imaginary","initializer_list","istringstream","jthread","latch","lock_guard","multimap","multiset","mutex","optional","ostringstream","packaged_task","pair","promise","priority_queue","queue","recursive_mutex","recursive_timed_mutex","scoped_lock","set","shared_future","shared_lock","shared_mutex","shared_timed_mutex","shared_ptr","stack","string_view","stringstream","timed_mutex","thread","true_type","tuple","unique_lock","unique_ptr","unordered_map","unordered_multimap","unordered_multiset","unordered_set","variant","vector","weak_ptr","wstring","wstring_view"]
|
||||
},_={className:"function.dispatch",relevance:0,keywords:{
|
||||
_hint:["abort","abs","acos","apply","as_const","asin","atan","atan2","calloc","ceil","cerr","cin","clog","cos","cosh","cout","declval","endl","exchange","exit","exp","fabs","floor","fmod","forward","fprintf","fputs","free","frexp","fscanf","future","invoke","isalnum","isalpha","iscntrl","isdigit","isgraph","islower","isprint","ispunct","isspace","isupper","isxdigit","labs","launder","ldexp","log","log10","make_pair","make_shared","make_shared_for_overwrite","make_tuple","make_unique","malloc","memchr","memcmp","memcpy","memset","modf","move","pow","printf","putchar","puts","realloc","scanf","sin","sinh","snprintf","sprintf","sqrt","sscanf","std","stderr","stdin","stdout","strcat","strchr","strcmp","strcpy","strcspn","strlen","strncat","strncmp","strncpy","strpbrk","strrchr","strspn","strstr","swap","tan","tanh","terminate","to_underlying","tolower","toupper","vfprintf","visit","vprintf","vsprintf"]
|
||||
},
|
||||
begin:t.concat(/\b/,/(?!decltype)/,/(?!if)/,/(?!for)/,/(?!switch)/,/(?!while)/,e.IDENT_RE,t.lookahead(/(<[^<>]+>|)\s*\(/))
|
||||
},m=[_,l,s,a,e.C_BLOCK_COMMENT_MODE,o,c],f={variants:[{begin:/=/,end:/;/},{
|
||||
begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],
|
||||
keywords:p,contains:m.concat([{begin:/\(/,end:/\)/,keywords:p,
|
||||
contains:m.concat(["self"]),relevance:0}]),relevance:0},g={className:"function",
|
||||
begin:"("+i+"[\\*&\\s]+)+"+d,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,
|
||||
keywords:p,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:n,keywords:p,relevance:0},{
|
||||
begin:d,returnBegin:!0,contains:[u],relevance:0},{begin:/::/,relevance:0},{
|
||||
begin:/:/,endsWithParent:!0,contains:[c,o]},{relevance:0,match:/,/},{
|
||||
className:"params",begin:/\(/,end:/\)/,keywords:p,relevance:0,
|
||||
contains:[a,e.C_BLOCK_COMMENT_MODE,c,o,s,{begin:/\(/,end:/\)/,keywords:p,
|
||||
relevance:0,contains:["self",a,e.C_BLOCK_COMMENT_MODE,c,o,s]}]
|
||||
},s,a,e.C_BLOCK_COMMENT_MODE,l]};return{name:"C++",
|
||||
aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:p,illegal:"</",
|
||||
classNameAliases:{"function.dispatch":"built_in"},
|
||||
contains:[].concat(f,g,_,m,[l,{
|
||||
begin:"\\b(deque|list|queue|priority_queue|pair|stack|vector|map|set|bitset|multiset|multimap|unordered_map|unordered_set|unordered_multiset|unordered_multimap|array|tuple|optional|variant|function|flat_map|flat_set)\\s*<(?!<)",
|
||||
end:">",keywords:p,contains:["self",s]},{begin:e.IDENT_RE+"::",keywords:p},{
|
||||
match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/],
|
||||
className:{1:"keyword",3:"title.class"}}])}}})();hljs.registerLanguage("cpp",e)
|
||||
})();
|
||||
Reference in New Issue
Block a user