Lines Matching +full:cmake +full:- +full:ext
5 # Use of this source code is governed by a BSD-style license that can be
12 gn gen out/config --ide=json --json-ide-script=../../gn/gn_to_cmake.py
16 gn gen out/config --ide=json
19 The first is recommended, as it will auto-update.
33 """Escapes the string 'a' for use inside a CMake string.
47 """Escapes the string 'a' for use as a CMake target name.
49 CMP0037 in CMake 3.0 restricts target names to "^[A-Za-z0-9_.:+-]+$"
53 if c in string.ascii_letters or c in string.digits or c in '_.+-':
61 """Sets a CMake variable."""
70 """Sets a CMake variable to a list."""
204 if toolchain_separator == -1:
210 toolchain = gn_target_name[toolchain_separator + 1:-1]
221 cmake_target_name += '--' + toolchain
251 out.write(' COMMAND ${CMAKE_COMMAND} -E make_directory "')
271 #TODO: CMake 3.7 is introducing DEPFILE
320 out.write(' COMMAND ${CMAKE_COMMAND} -E make_directory "')
344 #TODO: CMake 3.7 is introducing DEPFILE
377 # CMake distinguishes between copying files and copying directories but
381 out.write(' COMMAND ${CMAKE_COMMAND} -E copy "')
383 out.write(' COMMAND ${CMAKE_COMMAND} -E copy_directory "')
443 # CMake does not have per target lang compile flags.
502 # As of cmake 3.11 add_library must have sources.
510 _, ext = posixpath.splitext(source)
512 source_types[source_file_types.get(ext, 'other')].append(source_abs_path)
519 # Only executables and non-OBJECT libraries may reference an OBJECT library.
520 # https://gitlab.kitware.com/cmake/cmake/issues/14778
600 # Non-library dependencies.
609 # Non-OBJECT library dependencies.
623 external_library = external_library[:-len('.framework')]
653 extName = posixpath.join(project.build_path, 'CMakeLists.ext')
664 # If a build file has changed, this will update CMakeLists.ext if
665 # gn gen out/config --ide=json --json-ide-script=../../gn/gn_to_cmake.py
668 out.write(' ninja -C "')
689 # The following appears to be as-yet undocumented.
692 # ASM-ATT does not support .S files.
693 # output.write('enable_language(ASM-ATT)\n')
695 # Current issues with automatic re-generation: