Reference
Groups
Android (24)
[ccl_add_aar_project] [ccl_add_deployment_project] [ccl_add_gradle_dependency] [ccl_add_gradle_include] [ccl_add_gradle_project] [ccl_add_gradle_project_property] [ccl_add_gradle_property] [ccl_add_gradle_settings] [ccl_add_java_sourcedir] [ccl_add_preload_libraries] [ccl_add_proguard_file] [ccl_configure_project_vendor] [ccl_copy_imported_jnilib] [ccl_generate_signing_key] [ccl_generate_signing_properties] [ccl_generate_version_properties] [ccl_get_jnilibs_directory] [ccl_get_target_gradle_dir] [ccl_install_aar] [ccl_process_assets] [ccl_process_dependencies] [ccl_process_resources] [ccl_set_target_gradle_prefix] [ccl_setup_external_project_platform_options]
Extensions (4)
[ccl_extensions_add_core_library] [ccl_extensions_add_library] [ccl_extensions_configure_target] [ccl_import_extension_files]
Ios (2)
Linux (11)
[ccl_add_shader_resource] [ccl_configure_project_vendor] [ccl_install_appstream_file] [ccl_install_desktop_file] [ccl_install_icon] [ccl_install_icons_from_xcassets] [ccl_install_mimetypes] [ccl_process_assets] [ccl_process_resources] [ccl_setup_external_project_platform_options] [ccl_use_dbus_interface]
Mac (9)
[ccl_add_shader_resource] [ccl_configure_project_vendor] [ccl_configure_vendor] [ccl_generate_export_file] [ccl_process_assets] [ccl_process_plugins] [ccl_process_resources] [ccl_setup_external_project_platform_options] [core_add_bundle_localizations]
Win (14)
[ccl_add_pixelshader] [ccl_add_shader_resource] [ccl_add_vertexshader] [ccl_configure_project_vendor] [ccl_disable_arm64x] [ccl_embed_manifest] [ccl_generate_export_file] [ccl_get_sign_args] [ccl_nsis_package] [ccl_process_dependencies] [ccl_process_resources] [ccl_reset_project_vendor_variables] [ccl_set_debug_command] [ccl_sign_files]
Functions (5)
- ccl_add_test(target)
functionsharedcclmacros.cmakeAdd a target containing unit tests. This will add a custom target in order to run the tests. For generators XCode and Visual Studio, the debugger command for the provided target is replaced by the testrunner in order to directly debug tests.
- Parameters:
target (string) – Name of the target to add the extension to.
- ccl_print_directory_properties()
functionsharedcoremacros.cmakePrint all properties that are defined for the current directory.
- ccl_print_source_file_properties(file)
functionsharedcoremacros.cmakePrint all properties that are defined for a source file.
- Parameters:
file (filepath) – Path to a file to print the properties for.
- ccl_print_target_properties(target)
functionsharedcoremacros.cmakePrint all properties that are defined for a target.
- Parameters:
target (string) – Name of the target to print the properties for.
- ccl_print_variables()
functionsharedcoremacros.cmakePrint all variables.
Macros (129)
- ccl_add_aar_project(project, NAMESPACE, DEPENDS)
macroandroidcoremacros.android.cmakeGenerate an AAR packaging project for Java parts and resources.
- Parameters:
project (string) – Gradle project name.
NAMESPACE (string) – Java namespace for AAR.
DEPENDS (string) – [variadic] List of dependency target names.
- ccl_add_app(target, SUBDIR, VENDOR, VERSION_FILE, VERSION_PREFIX, flags)
macrosharedcoremacros.cmakeAdd an application, preconfigured to match vendor guidelines.
- Parameters:
target (string) – Name of the target to add.
SUBDIR (string) – [optional] Subdirectory to place the build artifact in, e.g. “Plugins”.
VENDOR (string) – [optional] Vendor ID, used to determine version information. See ccl_set_vendor.
VERSION_FILE (filepath) – [optional] Path to a version header file.
VERSION_PREFIX (string) – [optional] Prefix used in the version header file, e.g. APP or PLUG.
flags – [variadic] Use BUNDLE for applications that contain resources. Use GUI for applications that have an application window, implies BUNDLE.
- ccl_add_assets(target, PATH, FILES, DIRECTORY)
macrosharedcoremacros.cmakeAdd asset files to a target. All asset files are placed in the application directory. You may place all asset files in a subdirectory using an optional PATH <subdirectory> argument.
- Parameters:
target (string) – Name of the target to add asset files to.
PATH (path) – [optional] Destination subdirectory.
FILES (filepath) – [variadic] Asset files.
DIRECTORY (path) – [variadic] Asset directories.
- ccl_add_core_app(target, SUBDIR, VENDOR, VERSION_FILE, VERSION_PREFIX, flags)
macrosharedcoremacros.cmakeAdd an application using core, preconfigured to match vendor guidelines.
- Parameters:
target (string) – Name of the target to add.
SUBDIR (string) – [optional] Subdirectory to place the build artifact in, e.g. “Plugins”.
VENDOR (string) – [optional] Vendor ID, used to determine version information. See
ccl_set_vendor.VERSION_FILE (filepath) – [optional] Path to a version header file.
VERSION_PREFIX (string) – [optional] Prefix used in the version header file, e.g. APP or PLUG.
flags – [variadic] Use BUNDLE for applications that contain resources. Use GUI for applications that have an application window, implies BUNDLE.
- ccl_add_core_library(target, type, SUBDIR, VENDOR, VERSION_FILE, VERSION_PREFIX)
macrosharedcoremacros.cmakeAdd a library using core, preconfigured to match vendor guidelines.
- Parameters:
target (string) – Name of the target to add.
type (string) – Target type, e.g. STATIC, MODULE, INTERFACE.
SUBDIR (string) – [optional] Subdirectory to place the build artifact in, e.g. “Plugins”.
VENDOR (string) – [optional] Vendor ID, used to determine version information. See ccl_set_vendor.
VERSION_FILE (filepath) – [optional] Path to a version header file.
VERSION_PREFIX (string) – [optional] Prefix used in the version header file, e.g. APP or PLUG.
- ccl_add_core_plugin_library(target, type)
macrosharedcoremacros.cmakeAdd a plug-in library, preconfigured to match vendor guidelines.
- Parameters:
target (string) – Name of the target to add.
- ccl_add_dependencies(target, args)
macrosharedcoremacros.cmakeAdd dependencies to a target. Unlike CMake’s add_dependencies, this macro skips non-existing targets silently.
- Parameters:
target (string) – Name of the target to add dependencies to.
args – [variadic] Dependencies.
- ccl_add_deployment_project(project, appid, CMAKE_ARGS)
macroandroidcoremacros.android.cmakeAdd an existing APK deployment project.
- Parameters:
project (string) – Parent project target name.
appid (string) – Application ID, e.g. dev.ccl.ccldemo.
CMAKE_ARGS (string) – [variadic] List of arguments to pass to native CMake subprojects.
- ccl_add_extension(target, input)
macrosharedcclmacros.cmakeAdd an extension.
- Parameters:
target (string) – Name of the target to add the extension to.
input (filepath) – Extension project name.
- ccl_add_extension_package(target, input)
macrosharedcclmacros.cmakeAdd an extension package, generated from a .build description file.
- Parameters:
target (string) – Name of the target to add the extension to.
input (filepath) – Extension package .build file for the packagetool.
- ccl_add_external_project(target, sourcedir, CONFIGURE_ONLY, BUILD_COMMAND, INSTALL_COMMAND, OPTIONS)
macrosharedcoremacros.cmakeAdd an external project.
- Parameters:
target (string) – Name of the target to add for the external project.
sourcedir (path) – Folder containing the external project’s CMakeLists.txt.
CONFIGURE_ONLY (bool) – [optional] Skip build and install steps.
BUILD_COMMAND (string) – [optional] Custom build command.
INSTALL_COMMAND (string) – [optional] Custom install command.
OPTIONS (list) – [optional] Options to add to the external project’s CMake invocation.
- ccl_add_gradle_dependency(target, packages, COMPILE_ONLY, TRANSITIVE)
macroandroidcoremacros.android.cmakeAdd an external dependency to the project
- Parameters:
target (string) – Name of the target to operate on.
packages (list) – Package identifiers of the dependencies to add.
COMPILE_ONLY (bool) – Don’t add the dependency to the resulting package.
TRANSITIVE (bool) – Pass the dependency on to depending projects.
- ccl_add_gradle_include(target, path)
macroandroidcoremacros.android.cmakeAdd a .gradle file to include in the project build
- Parameters:
target (string) – Name of the target to operate on.
path (string) – Path to the .gradle file to include.
- ccl_add_gradle_project(target, name, path, TRANSITIVE)
macroandroidcoremacros.android.cmakeAdd an external Gradle project to include in the project
- Parameters:
target (string) – Name of the target to operate on.
name (string) – Name of the Gradle project to include.
path (string) – Path to the Gradle project.
TRANSITIVE (bool) – Pass the dependency on to depending projects.
- ccl_add_gradle_project_property(target, project, name, value)
macroandroidcoremacros.android.cmakeSet a property on an external Gradle project
- Parameters:
target (string) – Name of the target to operate on.
project (string) – Name of the external Gradle project.
name (string) – Name of the property to add.
value (string) – Initial value of the property.
- ccl_add_gradle_property(target, name, value)
macroandroidcoremacros.android.cmakeAdd a property that will be made available in .gradle scripts
- Parameters:
target (string) – Name of the target to operate on.
name (string) – Name of the property to add.
value (string) – Initial value of the property.
- ccl_add_gradle_settings(target, path)
macroandroidcoremacros.android.cmakeAdd a .settings.gradle file to include in the project settings
- Parameters:
target (string) – Name of the target to operate on.
path (string) – Path to the .settings.gradle file to include.
- ccl_add_java_sourcedir(target, path)
macroandroidcoremacros.android.cmakeAdd a Java source dir to include in the project build
- Parameters:
target (string) – Name of the target to operate on.
path (string) – Path to the Java source dir to add.
- ccl_add_library(target, type, SUBDIR, VENDOR, VERSION_FILE, VERSION_PREFIX, POSTFIX)
macrosharedcoremacros.cmakeAdd a library, preconfigured to match vendor guidelines.
- Parameters:
target (string) – Name of the target to add.
type (string) – Target type, e.g. STATIC, MODULE, INTERFACE.
SUBDIR (string) – [optional] Subdirectory to place the build artifact in, e.g. “Plugins”.
VENDOR (string) – [optional] Vendor ID, used to determine version information. See ccl_set_vendor.
VERSION_FILE (filepath) – [optional] Path to a version header file.
VERSION_PREFIX (string) – [optional] Prefix used in the version header file, e.g. APP or PLUG.
POSTFIX (string) – [optional] Postfix to append to the target name and binary output name.
- ccl_add_optional(target, optionname, description, default, sources)
macrosharedcoremacros.cmakeAdd source files for an optional feature to a target.
- Parameters:
target (string) – Name of the target to add source files to.
optionname (string) – Name of an option to check.
description (string) – Description of the optional feature.
default (bool) – Default value of the option.
sources (string) – Name of a variable that contains the source files of the feature.
- ccl_add_pixelshader(target, source)
macrowincclmacros.win.cmakeAdd a 3D pixel shader resource.
- Parameters:
target (string) – Name of the target to add a shader resource to.
source (string) – Shader source file.
- ccl_add_plugin_library(target)
macrosharedcclmacros.cmakeAdd a plug-in library, preconfigured to match vendor guidelines.
- Parameters:
target (string) – Name of the target to add.
- ccl_add_preload_libraries(target, LIBRARIES)
macroandroidcoremacros.android.cmakeAdd libraries to preload for calling JNI_OnLoad
- Parameters:
target (string) – Name of target to add preload libraries to.
LIBRARIES (string) – [variadic] List of library names.
- ccl_add_proguard_file(target, path)
macroandroidcoremacros.android.cmakeAdd a ProGuard file to include in the project build
- Parameters:
target (string) – Name of the target to operate on.
path (string) – Path to the ProGuard file to include.
- ccl_add_resources(target, args)
macrosharedcoremacros.cmakeAdd resource files to a target. All resource files are placed in a flat resource directory. You may place all resource files in a subdirectory using an optional PATH <subdirectory> argument.
- Parameters:
target (string) – Name of the target to add resource files to.
args – [variadic] Resource files.
- ccl_add_script_package(target, input)
macrosharedcclmacros.cmakeAdd a package containing scripts, generated from a .in description file or a folder.
- Parameters:
target (string) – Name of the target to add the script package to.
input (filepath) – Script package .in file or folder for the packagetool.
- ccl_add_shader_resource(target, source)
macrosharedcclgui.ios.cmake
- ccl_add_shader_resource(target, source)
macrolinuxcclmacros.linux.cmakeAdd a 3D shader resource.
- Parameters:
target (string) – Name of the target to add a shader resource to.
source (string) – Shader source file.
- ccl_add_shader_resource(target, source)
macromaccclmacros.mac.cmakeAdd a 3D shader resource.
- Parameters:
target (string) – Name of the target to add a shader resource to.
source (string) – Shader source file.
- ccl_add_shader_resource(target, source, shader_type)
macrowincclmacros.win.cmakeAdd a 3D shader resource.
- Parameters:
target (string) – Name of the target to add a shader resource to.
source (string) – Shader source file.
shader_type (string) – Shader type, usually “Vertex” or “Pixel”.
- ccl_add_skin_package(target, from)
macrosharedskins-config.cmakeadds a custom application skin package
- ccl_add_snapshot_package(target, input)
macrosharedcclmacros.cmakeAdd a snapshot package, generated from a directory.
- Parameters:
target (string) – Name of the target to add the snapshot to.
input (filepath) – Directory containing a snapshot subdirectory for the packagetool.
- ccl_add_to_cache(cache_entry, file_path)
macrosharedcoremacros.cmakeAdd a file to cache.
- Parameters:
cache_entry (string) – Unique cache entry identifier.
file_path (filepath) – Path to the file.
- ccl_add_vertexshader(target, source, shader_type)
macrowincclmacros.win.cmakeAdd a 3D vertex shader resource.
- Parameters:
target (string) – Name of the target to add a shader resource to.
source (string) – Shader source file.
shader_type (string) – Shader type.
- ccl_check_file_created(file, result)
macrosharedcoremacros.cmakeCheck if a file has been created using a ccl_create_file_once
- Parameters:
file (string) – File name.
result (string) – Result variable. Set to ON if the file has already been created. Set to OFF otherwise.
- ccl_check_target_exists(target, result)
macrosharedcoremacros.cmakeCheck if a target already exists
- Parameters:
target (string) – Name of the target.
result (string) – Name of the result variable.
- ccl_configure_project_vendor(vendor)
macroandroidcoremacros.android.cmakeConfigure the project vendor.
- Parameters:
vendor (string) – Vendor name.
- ccl_configure_project_vendor(vendor)
macroioscoremacros.ios.cmakeConfigure the project vendor.
- Parameters:
vendor (string) – Vendor name.
- ccl_configure_project_vendor(vendor)
macrolinuxcoremacros.linux.cmakeConfigure the project vendor.
- Parameters:
vendor (string) – Vendor name.
- ccl_configure_project_vendor(vendor)
macromaccoremacros.mac.cmakeConfigure the project vendor.
- Parameters:
vendor (string) – Vendor name.
- ccl_configure_project_vendor(vendor)
macrowincoremacros.win.cmakeConfigure the project vendor.
- Parameters:
vendor (string) – Vendor name.
- ccl_configure_target(target)
macrosharedcoremacros.cmakePreconfigure a target to match vendor guidelines.
- Parameters:
target (string) – Name of the target to configure.
- ccl_configure_vendor(target, vendor)
macroioscoremacros.ios.cmakeConfigure the target vendor.
- Parameters:
vendor (string) – Vendor name.
- ccl_configure_vendor(target, vendor)
macromaccoremacros.mac.cmakeConfigure the target vendor.
- Parameters:
vendor (string) – Vendor name.
- ccl_copy_imported_jnilib(target)
macroandroidcoremacros.android.cmakeCopy imported libs of target to jnilibs directory
- Parameters:
target (string) – Name of target to copy imported lib from.
- ccl_copy_imported_target(target, SUBDIR, FOLDER, STRING)
macrosharedcoremacros.cmakeCopy an imported target to the build output directory.
- Parameters:
target (string) – Name of the imported target.
SUBDIR (string) – [optional] Subdirectory to copy the imported target to, e.g. “Plugins”.
FOLDER (string) – [optional] Project “folder” as displayed in the IDE.
STRING (string) – [optional] Target name of the new copy target.
- ccl_create_file_once(file, CONTENT)
macrosharedcoremacros.cmakeEnsure a file is created and initialized exactly once.
- Parameters:
file (string) – File name.
CONTENT (string) – [variadic,optional] Initial file content.
- ccl_create_plugin_file(module, LOCATION)
macrosharedcoremacros.cmakeCreate a .plugin file for native module loading.
- Parameters:
module (string) – Module name.
LOCATION (string) – Location to add the .plugin file to.
- ccl_disable_arm64x(target)
macrowincoremacros.win.cmakeDisable Arm64X build for given DLL target.
- Parameters:
target (string) – DLL target name.
- ccl_embed_manifest(target, file)
macrowincoremacros.win.cmakeAdd a manifest file to a target
- Parameters:
target (string) – Name of a target to add resources to.
file (filepath) – Path to a manifest file.
- ccl_encrypt(INPUT, OUTPUT, CIPHER)
macrosharedcclmacros.cmakeEncrypt a file.
- Parameters:
INPUT (filepath) – Path to the input file.
OUTPUT (filepath) – [optional] Path to the resulting xml file.
CIPHER (filepath) – Path to a cipher xml file.
- ccl_evaluate_macros(file, args)
macrosharedcoremacros.cmakePreprocess a header file and read the values of peprocessor definitions.
- Parameters:
file (filepath) – Source file with preprocessor definitions.
args – [variadic] List of pairs <var> <macro>, where <var> is the name of an output variable and <macro> is a macro to evaluate and store into <var>.
- ccl_export_symbols(target, args)
macrosharedcoremacros.cmakeGenerate an export definition for a target.
- Parameters:
target (string) – Name of the target to add resource files to.
args – [variadic] List of functions to export.
- ccl_extensions_add_core_library(target, subdir, extension)
macroextensionscoremacros.cmakeAdd an extension library using core, preconfigured to match vendor guidelines.
- Parameters:
target (string) – Name of the target to add.
subdir (string) – Subdirectory of the extension library, e.g. plugins or dsp.
extension (string) – [optional] Name of the extension. Defaults to <target>.
- ccl_extensions_add_library(target, subdir, extension)
macroextensionscoremacros.cmakeAdd an extension library, preconfigured to match vendor guidelines.
- Parameters:
target (string) – Name of the target to add.
subdir (string) – Subdirectory of the extension library, e.g. plugins or dsp.
extension (string) – [optional] Name of the extension. Defaults to <target>.
- ccl_extensions_configure_target(target, subdir, extension)
macroextensionscoremacros.cmakePreconfigure an extension library to match vendor guidelines.
- Parameters:
target (string) – Name of a target to configure.
subdir (string) – Subdirectory of the extension library, e.g. plugins or dsp.
extension (string) – Name of the extension.
- ccl_file_glob(file_list, glob)
macrosharedcclmacros.cmakeFile glob and filter for files starting with a “.” (hidden on many OSs)
- Parameters:
file_list (string) – Name of the variable to put the result into.
glob (string) – Glob expressions (path with wildcards)
- ccl_find_file(var)
macrosharedcoremacros.cmakeFind a file. This command is equivalent to the built-in find_file CMake provides. The only exception is that it checks for a revision number to make sure that CMake updates paths after a developer moved or renamed a previously cached directoy. Whenever you move or rename a file which might be used in any calls to ccl_find_file, update the revision number CCL_CMAKE_REVISION_NUMBER at the top of this file
- ccl_find_path(var)
macrosharedcoremacros.cmakeFind a directory containing a named file. This command is equivalent to the built-in find_path CMake provides. The only exception is that it checks for a revision number to make sure that CMake updates paths after a developer moved or renamed a previously cached directoy. Whenever you move or rename a directory which might be used in any calls to ccl_find_path, update the revision number CCL_CMAKE_REVISION_NUMBER at the top of this file
- ccl_find_platform_file(target)
macrosharedcoremacros.cmakeTry to find a platform configuration file for a target.
- Parameters:
target (string) – Name of a target to find a platform-specific configuration file for.
- ccl_find_program(var)
macrosharedcoremacros.cmakeFind a program. This command is equivalent to the built-in find_program CMake provides. The only exception is that it checks for a revision number to make sure that CMake updates paths after a developer moved or renamed a previously cached directoy. Whenever you move or rename a program which might be used in any calls to ccl_find_program, update the revision number CCL_CMAKE_REVISION_NUMBER at the top of this file
- ccl_generate_export_file(target_raw, args)
macromaccoremacros.mac.cmakeGenerate an export definition for a target.
- Parameters:
target_raw (string) – Name of the target to add resource files to.
args – [variadic] List of functions to export.
- ccl_generate_export_file(target, args)
macrowincoremacros.win.cmakeGenerate an export definition for a target.
- Parameters:
target (string) – Name of the target to add resource files to.
args – [variadic] List of functions to export.
- ccl_generate_path_list(in, out)
macrosharedrepomacros.cmakeGenerate a list of relative paths in json array syntax
- Parameters:
in (string) – Name of a CMake list variable containing absolute paths
out (string) – Name of the output variable
- ccl_generate_repo_info(file)
macrosharedrepomacros.cmakeGenerate a json file containing information about the repository layout
- Parameters:
file (filepath) – Path to the generated file.
- ccl_generate_signing_key(vendor)
macroandroidcoremacros.android.cmakeGenerate a fallback code signing key.
- Parameters:
vendor (string) – Vendor name.
- ccl_generate_signing_properties()
macroandroidcoremacros.android.cmakeGenerate signing.properties file.
- ccl_generate_version_properties(target)
macroandroidcoremacros.android.cmakeGenerate version.properties file.
- Parameters:
target (string) – Target name.
- ccl_get_build_output_directory(result, subdir)
macrosharedcoremacros.cmakeGet the default build output directory, optionally appending a subdirectory.
- Parameters:
result (path) – Output argument, the vendor and platform specific build directory.
subdir (string) – [optional] Additional subdirectory, e.g. “Plugins”.
- ccl_get_bundle_dir(bundle_dir, binary_path)
macrosharedcoremacros.mac.cmake
- ccl_get_extension_library_path(result, subdir, extension)
macrosharedcoremacros.cmakeGet the build output path of an extension library.
- Parameters:
result (path) – Output argument, vendor and platform specific library build directory.
subdir (string) – Subdirectory of the extension library, e.g. plugins or dsp.
extension (string) – Name of the extension.
- ccl_get_isolated_target(plain_target, result, target)
macrosharedcoremacros.cmakeGet the name of an isolated target, if it exists. Returns the plain target name if an isolated variant does not exist
- Parameters:
result (string) – Name of the result variable.
target (string) – Name of the target without isolation postfix.
- ccl_get_isolated_target(plain_target, result, target)
macrosharedcclmacros.cmakeGet the name of an isolated target, if it exists. Returns the plain target name if an isolated variant does not exist
- Parameters:
result (string) – Name of the result variable.
target (string) – Name of the target without isolation postfix.
- ccl_get_jnilibs_directory(output)
macroandroidcoremacros.android.cmakeGet the jnilibs directory for native builds
- Parameters:
output (string) – Output variable name.
- ccl_get_library_path(result, name, type, subdir)
macrosharedcoremacros.cmakeGet the build output path of a library.
- Parameters:
result (path) – Output argument, vendor and platform specific library build directory.
name (string) – Library name.
type (string) – Build type (import, static, shared).
subdir (string) – [optional] Additional subdirectory, e.g. “Plugins” or an absolute build output directory.
- ccl_get_sign_args(result, vendor)
macrowincoremacros.win.cmakeGet arguments to be passed to a sign script
- Parameters:
result (string) – Name of the result variable.
vendor (string) – Vendor name.
- ccl_get_target_gradle_dir(output, target)
macroandroidcoremacros.android.cmakeGet the directory to store generated Gradle files for target.
- Parameters:
output (string) – Output variable to store result in.
target (string) – Name of the target to operate on.
- ccl_import_extension_files(target, directory)
macroextensionscoremacros.cmakeAdd external files to an extension.
- Parameters:
target (string) – Name of the target to add files to.
directory (path) – Path to the copy the files to.
- ccl_include_platform_specifics(args)
macrosharedcoremacros.cmakeInclude platform specific cmake files for a list of targets. Looks for files in the form of <target>.<platform>.cmake.
- Parameters:
args – [variadic] A list of target names.
- ccl_install_aar(project, COMPONENT)
macroandroidcoremacros.android.cmakeInstall an AAR generated by a packaging project.
- Parameters:
project (string) – Gradle project name.
COMPONENT (string) – Install component.
- ccl_install_appstream_file(target, in, targetid)
macrolinuxcoremacros.linux.cmakeInstall appstream data file.
- Parameters:
target (string) – target to install a mime types definition file for.
in (filepath) – Path to a appstream data file template.
targetid (string) – Package ID of a target to install an appstream data file for.
- ccl_install_desktop_file(in, targetid)
macrolinuxcoremacros.linux.cmakeInstall desktop file.
- Parameters:
in (filepath) – Path to a desktop file template.
targetid (string) – Package ID of a target to install a desktop file for.
- ccl_install_icon(target, icon)
macrolinuxcoremacros.linux.cmakeInstall scalable icon.
- Parameters:
target (string) – Name of a target to add resources to.
icon (filepath) – Path to an SVG icon.
- ccl_install_icons_from_xcassets(target, iconset)
macrolinuxcoremacros.linux.cmakeInstall icons from xcassets directory.
- Parameters:
target (string) – Name of a target to add resources to.
iconset (filepath) – Path to an iconset directory.
- ccl_install_mimetypes(target, in, targetid)
macrolinuxcoremacros.linux.cmakeInstall mime types definition file.
- Parameters:
target (string) – target to install a mime types definition file for.
in (filepath) – Path to a mime types definition file.
targetid (string) – Package ID of a target to install a mime types definition file for.
- ccl_link_whole_archive(target, args)
macrosharedcoremacros.cmakeLink a library as whole archive, i.e. don’t remove any symbols.
- Parameters:
target (string) – Name of the target to link libraries to.
args – [variadic] Libraries to link to <target>.
- ccl_list_append_once(variable, CONTENT)
macrosharedcoremacros.cmakeAppend items to a list and filter duplicate items
- Parameters:
variable (string) – Name of the list variable.
CONTENT (string) – [variadic,optional] Content to append to the list.
- ccl_make_appsecurity(SECURITY_DIR, CIPHER, KEY_FILE, PUBLIC_KEY_FILE, AUTH_POLICY)
macrosharedcclmacros.cmakeSign and encrypt a public key file and an authorization policy.
- Parameters:
SECURITY_DIR (path) – [optional] Directory containing cipher, key files and auth policy.
CIPHER (filepath) – [optional] Path to a cipher xml file.
KEY_FILE (filepath) – [optional] Path to private key file.
PUBLIC_KEY_FILE (filepath) – [optional] Path to a public key file.
AUTH_POLICY (filepath) – [optional] Path to an authorization policy xml file.
- ccl_make_authpolicy(INPUT, OUTPUT, SIGNED, ENCRYPTED, ROOT_NAME, KEY_FILE, CIPHER, PREFIX)
macrosharedcclmacros.cmakeSign and encrypt an authorization policy xml file and write it to a cpp file.
- Parameters:
INPUT (filepath) – Path to the input file.
OUTPUT (filepath) – [optional] Path to the resulting cpp file.
SIGNED (filepath) – [optional] Path to the intermediate signed file.
ENCRYPTED (filepath) – [optional] Path to the intermediate encrypted file.
ROOT_NAME (string) – [optional] Name of the XML root node.
KEY_FILE (filepath) – [optional] Path to private key file.
CIPHER (filepath) – [optional] Path to a cipher xml file.
PREFIX (string) – [optional] Variable name prefix used in the generated cpp file.
- ccl_makebin(INPUT, OUTPUT, SCRIPT_FILE, PREFIX, BYTE_ARRAY)
macrosharedcoremacros.cmakeConvert a file to a byte array and write it to a cpp file. Defines two variables <PREFIX>_Ptr and <PREFIX>_Size in the resulting cpp file.
- Parameters:
INPUT (filepath) – Path to the input file.
OUTPUT (filepath) – [optional] Path to the resulting cpp file.
SCRIPT_FILE (filepath) – [optional] Path to a temporary script file.
PREFIX (string) – Variable name prefix used in the generated cpp file.
BYTE_ARRAY (bool) – Use a byte array instead of a string literal. Using a string literal can speed up linking, but some compilers might have a size limit for string literals.
- ccl_makebin_export(INPUT, OUTPUT, SCRIPT_FILE, PREFIX, VARIABLE_NAME)
macrosharedcoremacros.cmakeConvert a file to a byte array and write it to a cpp file. Defines two exported functions <PREFIX>Data and <PREFIX>Size in the resulting cpp file.
- Parameters:
INPUT (filepath) – Path to the input file.
OUTPUT (filepath) – [optional] Path to the resulting cpp file.
SCRIPT_FILE (filepath) – [optional] Path to a temporary script file.
PREFIX (string) – Function name prefix used in the generated cpp file.
VARIABLE_NAME (string) – Variable name used in the generated cpp file.
- ccl_makezip(INPUT, OUTPUT)
macrosharedcoremacros.cmakeCreate ZIP archive. Note that paths in the ZIP file will be relative to the INPUT argument.
- Parameters:
INPUT (string) – Name of directory containing folders and files to include in the ZIP archive.
OUTPUT (string) – Name of the file to create.
- ccl_nsis_package(target, script, args)
macrowincoremacros.win.cmakeAdd a package target using an NSIS installer script. Creates a target names ${target}_installer.
- Parameters:
target (string) – Name of the target to add a package target for.
script (filepath) – NSIS script file path.
args – [variadic] Additional arguments are passed to NSIS.
- ccl_prepare_external_project_cache(target)
macrosharedcoremacros.cmakeRemove external project cache file when running without cache.
- Parameters:
target (string) – Name of the external project target to process.
- ccl_process_assets(target, PATH, FILES, DIRECTORY)
macroandroidcoremacros.android.cmakeGenerate a .gradle file referencing project assets
- Parameters:
target (string) – Name of the target to add asset files to.
PATH (path) – [optional] Destination subdirectory.
FILES (filepath) – [variadic] Asset files.
DIRECTORY (path) – [variadic] Asset directories.
- ccl_process_assets(target, PATH, FILES, DIRECTORY)
macrolinuxcoremacros.linux.cmakeInstall assets
- Parameters:
target (string) – Name of the target to add asset files to.
PATH (path) – [optional] Destination subdirectory.
FILES (filepath) – [variadic] Asset files.
DIRECTORY (path) – [variadic] Asset directories.
- ccl_process_assets(target_raw, PATH, FILES, DIRECTORY)
macromaccoremacros.mac.cmakeAdd assets to a bundle
- Parameters:
target_raw (string) – Name of the target to add asset files to.
PATH (path) – [optional] Destination subdirectory.
FILES (filepath) – [variadic] Asset files.
DIRECTORY (path) – [variadic] Asset directories.
- ccl_process_dependencies(target, ITEMS)
macroandroidcoremacros.android.cmakeProcess target dependencies.
- Parameters:
target (string) – Name of the target to process dependencies for.
ITEMS (string) – [variadic] List of dependency target names.
- ccl_process_dependencies(target, ITEMS)
macrowincoremacros.win.cmakeProcess target dependencies.
- Parameters:
target (string) – Name of the target to process dependencies for.
ITEMS (string) – [variadic] List of dependency target names.
- ccl_process_plugins(target_raw)
macromaccoremacros.mac.cmakeCopy libs and bundles to a bundle.
- Parameters:
target_raw (string) – Name of a target to add the modules to, without isolation
- ccl_process_plugins_type(target_raw, type, subdir, plugins)
macrosharedcoremacros.mac.cmake
- ccl_process_resources(target, config, path, args)
macroandroidcoremacros.android.cmakeGenerate a .gradle file referencing project resources
- Parameters:
target (string) – Name of a target to add resources to.
path (string) – Subdirectory to place the resources in.
args – Resource files.
- ccl_process_resources(target, config, path, args)
macrolinuxcoremacros.linux.cmakeLink resource files to a binary.
- Parameters:
target (string) – Name of a target to add resources to.
path (string) – Subdirectory to place the resources in.
args – Resource files.
- ccl_process_resources(target_raw, config, path, args)
macromaccoremacros.mac.cmakeCopy resource files to a bundle.
- Parameters:
target_raw (string) – Name of a target to add resources to.
path (string) – Subdirectory to place the resources in.
args – Resource files.
- ccl_process_resources(target, config, path, args)
macrowincoremacros.win.cmakeGenerate an .rc file for the resource compiler
- Parameters:
target (string) – Name of a target to add resources to.
path (string) – Subdirectory to place the resources in.
args – Resource files.
- ccl_read_version(target, versionfile, prefix, fallback)
macrosharedcoremacros.cmakePreprocess a version header file and read version information. Defines the following variables:
<target>_VERSION
<target>_VERSION_MAJOR
<target>_VERSION_MINOR
<target>_VERSION_REVISION
<target>_VERSION_BUILD
<target>_NAME
<target>_COMPANY_NAME
<target>_COPYRIGHT
<target>_WEBSITE
<target>_PACKAGE_DOMAIN
<target>_PACKAGE_ID
<target>_MIME_TYPE
- Parameters:
target (string) – Prefix of the result variables.
versionfile (filepath) – Version header file of the target.
prefix (string) – [optional] Prefix of preprocessor definitions in the header file, e.g. APP.
fallback (string) – [optional] Fallback prefix for fields that are not defined in the version header, e.g. CCL.
- ccl_reset_project_vendor_variables()
macrowincoremacros.win.cmakeReset vendor variables before configuring a new vendor.
- ccl_restore_from_cache(cache_entry, FILE_NAME, DESTINATION)
macrosharedcoremacros.cmakeRestore a file from cache.
- Parameters:
cache_entry (string) – Unique cache entry identifier.
FILE_NAME (string) – Name of the file to restore from cache.
DESTINATION (filepath) – Directory to copy the file to.
- ccl_set_debug_arguments(target, args)
macrosharedcoremacros.cmakeSet default debug arguments.
- Parameters:
target (string) – Name of the target to set debug arguments for.
args – [variadic] Debug arguments.
- ccl_set_debug_command(target, DEBUG_EXECUTABLE, DEBUG_ARGUMENTS, args)
macrowincoremacros.win.cmakeSet the debug command for a target.
- Parameters:
target (string) – Name of the target to set the debug command for.
DEBUG_EXECUTABLE (string) – Path to the executable to run when debugging.
DEBUG_ARGUMENTS (string) – [optional] Additional arguments passed to the executable when debugging.
args – [variadic] List of functions to export.
- ccl_set_debug_command(target)
macrosharedcclmacros.mac.cmake
- ccl_set_product_name(target, name)
macrosharedcoremacros.cmakeSet the product name for a target. Depending on the platform, this name might be used to set the name of the resulting binary or the IDE project name.
- Parameters:
target (string) – Name of the target.
name (string) – Product name.
- ccl_set_project_vendor(vendor)
macrosharedcoremacros.cmakeSet the project vendor. The project vendor name is used to set installation directories, the code signing identity and other properties that apply to all targets in the project. Most applications won’t call this macro directly. Instead, set the variable PROJECT_VENDOR to your vendor identity right after the first project call.
- Parameters:
vendor (string) – Vendor name.
- ccl_set_startup_project(project)
macrosharedcoremacros.cmakeSet the default target, i.e. the startup project for the current solution / workspace.
- Parameters:
project (string) – Name of the target that should be the startup project.
- ccl_set_target_gradle_prefix(target, prefix)
macroandroidcoremacros.android.cmakeSet a prefix to use for Gradle includes for the specified target.
- Parameters:
target (string) – Target name.
prefix (string) – Prefix to use for target.
- ccl_set_vendor(target, vendor)
macrosharedcoremacros.cmakeSet the target vendor. The vendor name is used to find signing certificates as well as copyright information.
- Parameters:
target (string) – Name of the target.
vendor (string) – Vendor name.
- ccl_setup_external_project_options(target, options)
macrosharedcoremacros.cmakeSetup options for an external project.
- Parameters:
target (string) – Name of the external project target to process.
options (list) – Options to add to the external project’s CMake invocation.
- ccl_setup_external_project_platform_options(target)
macroandroidcoremacros.android.cmakeSetup platform-specific options to pass to CMake for external projects
- Parameters:
target (string) – Name of target to setup platform options for.
- ccl_setup_external_project_platform_options(target)
macrolinuxcoremacros.linux.cmakeSetup platform-specific options to pass to CMake for external projects
- Parameters:
target (string) – Name of target to setup platform options for.
- ccl_setup_external_project_platform_options(target)
macromaccoremacros.mac.cmakeSetup platform-specific options to pass to CMake for external projects
- Parameters:
target (string) – Name of target to setup platform options for.
- ccl_sign(INPUT, OUTPUT, KEY_FILE, ROOT_NAME)
macrosharedcclmacros.cmakeCreate an XML signature for an input file.
- Parameters:
INPUT (filepath) – Path to the input file.
OUTPUT (filepath) – [optional] Path to the resulting xml file.
KEY_FILE (filepath) – Path to private key file.
ROOT_NAME (string) – Name of the XML root node.
- ccl_sign_files(target, vendor, file, script)
macrowincoremacros.win.cmakeSign files.
- Parameters:
target (string) – Name of a new siging target.
vendor (string) – Vendor name.
script (filepath) – Path to a file to sign, might contain wildcards.
- ccl_target_headers(target, INSTALL, DESTINATION, BASE_DIRS, FILES)
macrosharedcoremacros.cmakeAdd headers files to a target. For Xcode, emulate the FILE_SET feature to install the files
- Parameters:
target (string) – Name of the target to add the headers to.
INSTALL (bool) – [optional] Also install the files.
DESTINATION (string) – Name of directory to write the files when installing.
BASE_DIRS (list) – List of base directories which are stripped from the header file paths.
FILES (list) – List of paths to header files.
- ccl_use_dbus_interface(target, interface)
macrolinuxcclmacros.linux.cmakeUse a D-Bus interface. Generates source files and headers from an xml interface description.
- Parameters:
target (string) – Name of the target using the interface
interface (string) – Name of an interface or absolute path to an interface xml description
- ccl_use_skin_packages(target)
macrosharedskins-config.cmakeuse a skin package
- ccl_use_translation_packages(apptarget)
macrosharedtranslations-config.cmakeuse a translation package
- core_add_bundle_localizations(target_raw, unused1, unused2)
macromaccoremacros.mac.cmakeCreate localized dummy files in Mac or iOS Bundles.
- Parameters:
target_raw (string) – Name of a target.
- get_properties(var)
macrosharedcoremacros.cmakeGet all properties cmake supports.
- target_link_ccl_framework(target)
macrosharedcclmacros.cmakeLink ccl framework, optionally using application- or version-dependent library names