• Home
  • Raw
  • Download

Lines Matching +full:cmake +full:- +full:args

7 #     https://www.apache.org/licenses/LICENSE-2.0
23 "using ${pw_root} within CMake")
28 # pw_unit_test/test.cmake for test functions and variables instead of relying
29 # on them to be provided by pw_build/pigweed.cmake.
30 include("$ENV{PW_ROOT}/pw_unit_test/test.cmake")
40 # NUM_POSITIONAL_ARGS - PARSE_ARGV <N> arguments for
43 # Optional Args:
45 # OPTION_ARGS - <option> arguments for cmake_parse_arguments
46 # ONE_VALUE_ARGS - <one_value_keywords> arguments for cmake_parse_arguments
47 # MULTI_VALUE_ARGS - <multi_value_keywords> arguments for
49 # REQUIRED_ARGS - required arguments which must be set, these may any
104 # # Checks that arg_FOO is non-empty, using the current function name.
107 # # Checks that FOO and BAR are non-empty, using function name "do_the_thing".
125 # pw_target_link_targets: CMake target only form of target_link_libraries.
127 # Helper wrapper around target_link_libraries which only supports CMake targets
133 # checked at the end of the root CMake list file. Instead of requiring all
136 # Required Args:
138 # <name> - The library target to add the TARGET link dependencies to.
140 # Optional Args:
142 # INTERFACE - interface target_link_libraries arguments which are all TARGETs.
143 # PUBLIC - public target_link_libraries arguments which are all TARGETs.
144 # PRIVATE - private target_link_libraries arguments which are all TARGETs.
169 # avoid re-evaluation at the deferred call.
182 # Required Args:
184 # <name> - The name of the library target to add the link dependencies to.
185 # <type> - The type of the library (INTERFACE, PUBLIC, PRIVATE).
186 # <library> - The library to check to assert it's a TARGET.
204 # pw_add_library_generic: Creates a CMake library target.
206 # Required Args:
208 # <name> - The name of the library target to be created.
209 # <type> - The library type which must be INTERFACE, OBJECT, STATIC, or
212 # Optional Args:
214 # SOURCES - source files for this library
215 # HEADERS - header files for this library
216 # PUBLIC_DEPS - public pw_target_link_targets arguments
217 # PRIVATE_DEPS - private pw_target_link_targets arguments
218 # PUBLIC_INCLUDES - public target_include_directories argument
219 # PRIVATE_INCLUDES - public target_include_directories argument
220 # PUBLIC_DEFINES - public target_compile_definitions arguments
221 # PRIVATE_DEFINES - private target_compile_definitions arguments
222 # PUBLIC_COMPILE_OPTIONS - public target_compile_options arguments
223 # PRIVATE_COMPILE_OPTIONS - private target_compile_options arguments
224 # PRIVATE_COMPILE_OPTIONS_DEPS_BEFORE - private target_compile_options BEFORE
227 # exposed by the non-generic API.
228 # PUBLIC_LINK_OPTIONS - public target_link_options arguments
229 # PRIVATE_LINK_OPTIONS - private target_link_options arguments
246 # CMake 3.22 does not have a notion of target_headers yet, so in the mean
249 # which are otherwise ignored by CMake are present.
251 # See https://gitlab.kitware.com/cmake/cmake/-/issues/22468 for adding support
252 # to CMake to associate headers with targets properly for CMake 3.23.
393 # Optional Args:
395 # REMAP_PREFIXES - support remapping a prefix for checks
434 # Required Args:
436 # <name> - The name of the library target to be created.
437 # <type> - The library type which must be INTERFACE, OBJECT, STATIC or SHARED.
439 # Optional Args:
441 # SOURCES - source files for this library
442 # HEADERS - header files for this library
443 # PUBLIC_DEPS - public pw_target_link_targets arguments
444 # PRIVATE_DEPS - private pw_target_link_targets arguments
445 # PUBLIC_INCLUDES - public target_include_directories argument
446 # PRIVATE_INCLUDES - public target_include_directories argument
447 # PUBLIC_DEFINES - public target_compile_definitions arguments
448 # PRIVATE_DEFINES - private target_compile_definitions arguments
449 # PUBLIC_COMPILE_OPTIONS - public target_compile_options arguments
450 # PRIVATE_COMPILE_OPTIONS - private target_compile_options arguments
451 # PUBLIC_LINK_OPTIONS - public target_link_options arguments
452 # PRIVATE_LINK_OPTIONS - private target_link_options arguments
475 # globally in the CMake build instead of injecting them into libraries.
511 # BACKEND - The name of the facade's backend variable.
537 # globally in the CMake build instead of injecting them into libraries.
563 # pw_add_facade_generic: Creates a CMake facade library target.
570 # Required Args:
572 # <name> - The name for the public facade target (<name>) for all users and
574 # <type> - The library type which must be INTERFACE, OBJECT, STATIC, or
576 # BACKEND - The name of the facade's backend variable.
578 # Optional Args:
580 # SOURCES - source files for this library
581 # HEADERS - header files for this library
582 # PUBLIC_DEPS - public pw_target_link_targets arguments
583 # PRIVATE_DEPS - private pw_target_link_targets arguments
584 # PUBLIC_INCLUDES - public target_include_directories argument
585 # PRIVATE_INCLUDES - public target_include_directories argument
586 # PUBLIC_DEFINES - public target_compile_definitions arguments
587 # PRIVATE_DEFINES - private target_compile_definitions arguments
588 # PUBLIC_COMPILE_OPTIONS - public target_compile_options arguments
589 # PRIVATE_COMPILE_OPTIONS_DEPS_BEFORE - private target_compile_options BEFORE
592 # exposed by the non-generic API.
593 # PRIVATE_COMPILE_OPTIONS - private target_compile_options arguments
594 # PUBLIC_LINK_OPTIONS - public target_link_options arguments
595 # PRIVATE_LINK_OPTIONS - private target_link_options arguments
619 "the *.cmake import to that file.")
658 # Define the public-facing library for this facade, which depends on the
687 # NAME - Name of the facade's backend variable.
690 # DEFAULT_BACKEND - Optional default backend selection for the facade.
721 "you may be missing a pw_add_backend_variable or the *.cmake "
752 # Args:
777 # Adds compiler options to all targets built by CMake. Flags may be added any
789 cmake_parse_arguments(PARSE_ARGV 0 args "" "" "LANGUAGES")
818 # pw_add_error_target: Creates a CMake target which fails to build and prints a
823 # to catch problems during the CMake configuration phase.
825 # Args:
847 "${CMAKE_COMMAND}" -E echo "${message}"
849 "${CMAKE_COMMAND}" -E false