1. 11 Feb, 2019 1 commit
    • Saleem Abdulrasool's avatar
      Create and use `cmGeneratorTarget::Names` · fc8b90af
      Saleem Abdulrasool authored
      Rather than taking a number of out parameters for the various names,
      create a structure that is reused for both `GetLibraryNames` and
      `GetExecutableNames`.  Replace uses according to the new interface.
      fc8b90af
  2. 08 Feb, 2019 1 commit
  3. 07 Feb, 2019 1 commit
  4. 28 Jan, 2019 1 commit
  5. 27 Jan, 2019 1 commit
  6. 16 Jan, 2019 12 commits
    • Fred Baksik's avatar
      GHS: Update test suite · 21ab58d3
      Fred Baksik authored
      -- Allow for testing default toolset settings
         If CMake_TEST_GreenHillsMULTI_config is not defined then
         just run the GHS tests using defaults.
      -- Handle paths that contain spaces
      -- Update test suite to use "-non_shared" linker option
         Fixes linking issue if GHS is not shipped with shared libraries
      -- Other minor cleanup
      21ab58d3
    • Fred Baksik's avatar
      GHS: Integrity Application updates · 0c9e47d7
      Fred Baksik authored
      -- Check the property "ghs_integrity_app" on executables to set [INTEGRITY Application]
         If the property is not set then check if an integrate file is one of the source files (.int file).
         Dynamic Downloads that do not have an integrate file can use this property along with setting
         the compiler flag "-dynamic".
      
      -- Remove parsing for -dynamic flag; it is only used to print a comment
         The MULTI GUI will show if it is a Monolith or Dynamic Download application
      
      -- Use project references to specify which executables are part of the Integrity Application
         Usually Implicit Dependency Analysis will ensure that executable targets
         become part of the application.  This does not work for Dynamic Download without integrate files.
         Use `add_dependencies(dd vas)` to mark that the vas target is part of dd target.
      
      -- Update file locations in the Integrate files.
      0c9e47d7
    • Fred Baksik's avatar
      GHS: Add support for some of the source file properties · 80443184
      Fred Baksik authored
      -- INCLUDE_DIRECTORIES, COMPILE_DEFINITIONS, and COMPILE_OPTIONS
      80443184
    • Fred Baksik's avatar
      GHS: Add support for object libraries · 73092b22
      Fred Baksik authored
      73092b22
    • Fred Baksik's avatar
      GHS: EXCLUDE_FROM_ALL updates · 14f3ba20
      Fred Baksik authored
      -- Excluded targets should be generated but not included in build ALL
      -- Use the correct source list for this configuration when writing sources
      14f3ba20
    • Fred Baksik's avatar
      GHS: Use the correct compiler flags for CMAKE_BUILD_TYPE · 702121c5
      Fred Baksik authored
      -- Do not use CMAKE_C_FLAGS_RELEASE flags when CMAKE_BUILD_TYPE is empty
         if CMAKE_BUILD_TYPE was not set the generator would use Release settings
         this does not match the documented behavior of CMAKE_BUILD_TYPE
      
      -- CMAKE_C_FLAGS_<CONFIG> not used when -kernel is present
         Fixes issue where CMAKE_C_FLAGS_<CONFIG> is ignored when -kernel option is present as a compiler option
         When the -kernel option is added to an executable it uses a different set of language flags
         This does not occur -kernel=<type> is used or if it is added as part of a link flag
         The variables CMAKE_<LANG>_GHS_KERNEL_FLAGS_<CONFIG> are removed
         NOTE: By default this only added the flag -ldebug which links in the debugger library.
      
      -- Separate compiler options by newlines
      702121c5
    • Fred Baksik's avatar
      GHS: Cleanup unused file handling functions and file output updates · b2a72ec7
      Fred Baksik authored
      -- File handling cleanup
      -- Rename some functions to clarify what they do
      -- Update to source file path conversion; only perform conversion when using windows
      b2a72ec7
    • Fred Baksik's avatar
      GHS: Update the link line processing · 595932c4
      Fred Baksik authored
      -- add missing executable linker libs from:
         CMAKE_C_STANDARD_LIBRARIES
      -- add missed transitive link libraries
      -- add skipped library linker options
      -- The linker expects -l../relative/path/to/lib.a to be relative to the top-level project
         Because there can be multiple top-level projects convert the path to an absolute path to target
      595932c4
    • Fred Baksik's avatar
      GHS: Place build system outputs per target output directives · 2ed2d6b4
      Fred Baksik authored
      -- Set output and object file locations
      -- Suffixes are no longer being forced but will now follow the target properties
         By default GHS tools have no suffix for executable files so
         CMAKE_EXECUTABLE_SUFFIX was changed to meet this behavior
      -- Remove #if 0 blocked out code; it has been replaced.
         Forcing the -relprog option has been removed from non-kernel executable targets.
         The default value of this option (if it is even available) is determined by the
         tool-chain for the specified target and platform (Some tool-chains default to
         -locatedprogram).  The use of -relprog can have unexpected results as it cannot
         always produce a fully relocated executable.
      -- Clarify use of CMAKE_BUILD_TYPE to control build configuration
      2ed2d6b4
    • Fred Baksik's avatar
      GHS: Update the top-level project generation · ead7117a
      Fred Baksik authored
      -- Sort targets by name
      -- Generate a top-level project for each project command named as project.top.gpj
         Use the target set for the current project instead of assuming all targets
      -- Add support for building projects not in binary root
      -- Directly create files and pass ostream
      -- Do no generate project files for UTILITY targets; this was never supported
      -- Do no generate project files for OBJECT, SHARED, or MODULE libraries; this was never supported
      -- Update GHS tags to support project types
         NOTE: The default tag is changed to "" because "[ ]" is an invalid token in project file
      ead7117a
    • Fred Baksik's avatar
      GHS: Cleanup how source files are listed · e7825386
      Fred Baksik authored
      -- Sort the items of the project files, previously they were unsorted
         The layout is similar to Visual Studio projects
      -- Do not make a make a tree of directories and projects files
         The main project file is in the binary folder
         The sub-project files are located in the project object directory
         This is similar to the Makefile generator
      -- Allow the creation of a single project file
         If the variable or target property GHS_NO_SOURCE_GROUP_FILE is set
         then all sources will be listed in the main project file
      e7825386
    • Fred Baksik's avatar
      GHS: Update binary structure so that install scripts work · 447b57a2
      Fred Baksik authored
      GHS doesn't follow the binary structure that VS or Makefiles use
      Also setting binary location outputs do not work
      
      -- Update to act like Visual Studio Generator and use its project layout
      -- Fix open/close issues where open() was used instead of Open()
         Now passes the file handle to all function that require it
      -- Avoid triggering MULTI reloads; use SetCopyIfDifferent mode
      447b57a2
  7. 31 Dec, 2018 1 commit
  8. 10 Oct, 2018 1 commit
    • Brad King's avatar
      cmLocalGenerator: Remove AddCompileDefinitions method · 8f076acd
      Brad King authored
      This method offers the same definitions as `GetTargetDefines` except
      that it excludes the "export" macro on shared libraries.  Update call
      sites to use `GetTargetDefines` instead.  Some of them were incorrectly
      excluding the export macro.
      8f076acd
  9. 01 Jun, 2018 1 commit
    • Kitware Robot's avatar
      Revise C++ coding style using clang-format-6.0 · d7204e64
      Kitware Robot authored
      Run the `clang-format.bash` script to update all our C and C++ code to a
      new style defined by `.clang-format`.  Use `clang-format` version 6.0.
      
      * If you reached this commit for a line in `git blame`, re-run the blame
        operation starting at the parent of this commit to see older history
        for the content.
      
      * See the parent commit for instructions to rebase a change across this
        style transition commit.
      d7204e64
  10. 31 Jan, 2018 1 commit
    • Pavel Solodovnikov's avatar
      Reduce raw string pointers usage. · 653b8946
      Pavel Solodovnikov authored
      * Change some functions to take `std::string` instead of
        `const char*` in the following classes: `cmMakeFile`, `cmake`,
        `cmCoreTryCompile`, `cmSystemTools`,  `cmState`, `cmLocalGenerator`
        and a few others.
      * Greatly reduce using of `const char*` overloads for
        `cmSystemTools::MakeDirectory` and `cmSystemTools::RelativePath`.
      * Remove many redundant `c_str()` conversions throughout the code.
      653b8946
  11. 23 Jan, 2018 1 commit
  12. 15 Nov, 2017 1 commit
  13. 25 Sep, 2017 1 commit
  14. 30 Aug, 2017 1 commit
  15. 27 Apr, 2017 1 commit
  16. 19 Oct, 2016 1 commit
  17. 17 Oct, 2016 1 commit
  18. 10 Oct, 2016 4 commits
    • Stephen Kelly's avatar
      cmLinkLineComputer: Move FrameworkPath computation from cmLocalGenerator · f03d446e
      Stephen Kelly authored
      Add UseWatcomQuote state, and remove corresponding method parameters.
      f03d446e
    • Stephen Kelly's avatar
      cmLinkLineComputer: Move ComputeLinkLibs from cmLocalGenerator · 0c978063
      Stephen Kelly authored
      Add a cmOutputConverter to the cmLinkLineComputer and factory methods to
      facilitate shell escapes.
      
      Add state to the cmLinkLineComputer to record whether outputting for
      response files or for watcom, to satisfy the cmOutputConverter API.
      These are constant for the lifetime of the cmLinkLineComputer, even when
      its functionality is extended in the future.  This also keeps the
      signatures of cmLinkLineComputer relatively simple.
      
      Pass the cmComputeLinkInformation as a method parameter so that
      cmLinkLineComputer is free from target-specific state.  An instance
      should be usable for all targets in a directory.
      0c978063
    • Stephen Kelly's avatar
      cmLinkLineComputer: Extract from cmLocalGenerator · 5b361fdd
      Stephen Kelly authored
      CMake has several classes which have too many responsibilities.
      cmLocalGenerator is one of them.  Start to extract the link line
      computation.  Create generator-specific implementations of the interface
      to account for generator-specific behavior.
      
      Unfortunately MSVC60 has different behavior to everything else and CMake
      still generates makefiles for it.  Isolate it with MSVC60-specific
      names.
      5b361fdd
    • Stephen Kelly's avatar
      cmMakefile: Return a string from GetDefineFlags · c637e0c5
      Stephen Kelly authored
      Flip condition in GHS for readability.
      c637e0c5
  19. 27 Sep, 2016 1 commit
    • Brad King's avatar
      Simplify CMake per-source license notices · 86578ecc
      Brad King authored
      Per-source copyright/license notice headers that spell out copyright holder
      names and years are hard to maintain and often out-of-date or plain wrong.
      Precise contributor information is already maintained automatically by the
      version control tool.  Ultimately it is the receiver of a file who is
      responsible for determining its licensing status, and per-source notices are
      merely a convenience.  Therefore it is simpler and more accurate for
      each source to have a generic notice of the license name and references to
      more detailed information on copyright holders and full license terms.
      
      Our `Copyright.txt` file now contains a list of Contributors whose names
      appeared source-level copyright notices.  It also references version control
      history for more precise information.  Therefore we no longer need to spell
      out the list of Contributors in each source file notice.
      
      Replace CMake per-source copyright/license notice headers with a short
      description of the license and links to `Copyright.txt` and online information
      available from "https://cmake.org/licensing".  The online URL also handles
      cases of modules being copied out of our source into other projects, so we
      can drop our notices about replacing links with full license text.
      
      Run the `Utilities/Scripts/filter-notices.bash` script to perform the majority
      of the replacements mechanically.  Manually fix up shebang lines and trailing
      newlines in a few files.  Manually update the notices in a few files that the
      script does not handle.
      86578ecc
  20. 03 Sep, 2016 1 commit
  21. 08 Jun, 2016 1 commit
  22. 24 May, 2016 1 commit
  23. 18 May, 2016 1 commit
  24. 16 May, 2016 1 commit
    • Kitware Robot's avatar
      Revise C++ coding style using clang-format · d9fd2f54
      Kitware Robot authored
      Run the `Utilities/Scripts/clang-format.bash` script to update
      all our C++ code to a new style defined by `.clang-format`.
      Use `clang-format` version 3.8.
      
      * If you reached this commit for a line in `git blame`, re-run the blame
        operation starting at the parent of this commit to see older history
        for the content.
      
      * See the parent commit for instructions to rebase a change across this
        style transition commit.
      d9fd2f54
  25. 06 May, 2016 1 commit
  26. 29 Apr, 2016 1 commit
    • Brad King's avatar
      Format include directive blocks and ordering with clang-format · e1c77472
      Brad King authored
      Sort include directives within each block (separated by a blank line) in
      lexicographic order (except to prioritize `sys/types.h` first).  First
      run `clang-format` with the config file:
      
          ---
          SortIncludes: false
          ...
      
      Commit the result temporarily.  Then run `clang-format` again with:
      
          ---
          SortIncludes: true
          IncludeCategories:
            - Regex:    'sys/types.h'
              Priority: -1
          ...
      
      Commit the result temporarily.  Start a new branch and cherry-pick the
      second commit.  Manually resolve conflicts to preserve indentation of
      re-ordered includes.  This cleans up the include ordering without
      changing any other style.
      
      Use the following command to run `clang-format`:
      
          $ git ls-files -z -- \
              '*.c' '*.cc' '*.cpp' '*.cxx' '*.h' '*.hh' '*.hpp' '*.hxx' |
            egrep -z -v '(Lexer|Parser|ParserHelper)\.' |
            egrep -z -v '^Source/cm_sha2' |
            egrep -z -v '^Source/(kwsys|CursesDialog/form)/' |
            egrep -z -v '^Utilities/(KW|cm).*/' |
            egrep -z -v '^Tests/Module/GenerateExportHeader' |
            egrep -z -v '^Tests/RunCMake/CommandLine/cmake_depends/test_UTF-16LE.h' |
            xargs -0 clang-format -i
      
      This selects source files that do not come from a third-party.
      Inspired-by: Daniel Pfeifer's avatarDaniel Pfeifer <daniel@pfeifer-mail.de>
      e1c77472