1. 25 Jan, 2019 1 commit
  2. 16 Jan, 2019 7 commits
    • Fred Baksik's avatar
      GHS: Fix toolset selection · 4a1ec0de
      Fred Baksik authored
      -- Allow -T to accept full or partial paths
      -- Use "C:/ghs" if GHS_TOOLSET_ROOT is empty string
      -- Put more information in error messages
    • 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
    • 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
    • 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
    • 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
    • Fred Baksik's avatar
    • Fred Baksik's avatar
      GHS: Only print bsp and os directives if specified by user · a42e40e7
      Fred Baksik authored
      -- standalone platforms will not build if bsp/os is specified in project file
      -- integrity platforms will always print these directives because they are required
      -- cleanup -os_dir setting
         allow customization of the actual setting because it is determined by tool-set customization files
         remove variable that was set but never used
      -- add message when using default values
  3. 30 Dec, 2018 1 commit
  4. 11 Jul, 2018 1 commit
    • Fred Baksik's avatar
      GHS: Add toolset selection support · a37a4a00
      Fred Baksik authored
      -- Use the specified toolset located within GHS_TOOLSET_ROOT
      -- Update how the latest toolset is determined; scan the location GHS_TOOLSET_ROOT and sort it
         No longer use registry settings looking for installations
           The registry values are assigned in installation order for Green Hills tools not version order
      -- Update to use gbuild.exe from the proper toolset
      -- Clarify that CMAKE_MAKE_PROGRAM should not be set by user.
      -- Detect some toolset changes when regenerating project files
         This could occur if GHS_TOOLSET_ROOT was changed by user after the initial project generation
         This could occur if CMAKE_MAKE_PROGRAM was changed at the command line
      -- Use placeholder values for CMAKE_<LANG>_COMPILER
         The MULTI build system only uses gbuild to build a project
           gbuild uses the project file to determine which set of compilers to use based on target platform and architecture
           because compiler detection is skipped, placeholder values are used so that CMake does not complain
  5. 07 Jul, 2018 1 commit
    • Fred Baksik's avatar
      GHS: Support ARM, PPC, 86 architectures · 5d40d2b4
      Fred Baksik authored
      -- Update -A option to choose target architecture.
      -- Update commentary about which variables are used to control toolset and target settings
      -- Remove setting CMAKE_SYSTEM_PROCESSOR because the value is overwritten to be "" by subsequent CMAKE processing
  6. 22 Jun, 2018 1 commit
  7. 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.
  8. 25 May, 2018 1 commit
    • Florian Maushart's avatar
      cmake: Add options for parallel builds to --build mode · 1ab3881e
      Florian Maushart authored
      While we already support `cmake --build . -- -j`, the options after `--`
      are specific to the native build tool.  Add new options `--parallel
      [<N>]` and `-j [<N>]` to abstract this and map to the proper option
      for the native build tool.
  9. 15 Sep, 2017 1 commit
    • Brad King's avatar
      Use C++11 override instead of CM_OVERRIDE · 0b33aee4
      Brad King authored
      We now require C++11 support including `override`.  Drop use of
      the old compatibility macro.  Convert references as follows:
          git grep -l CM_OVERRIDE -- '*.h' '*.hxx' '*.cxx' |
            xargs sed -i 's/CM_OVERRIDE/override/g'
  10. 18 Aug, 2017 1 commit
  11. 20 Oct, 2016 1 commit
  12. 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.
  13. 14 Jul, 2016 1 commit
  14. 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.
  15. 29 Apr, 2016 2 commits
    • 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
            - 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>
    • Brad King's avatar
      Source: Stabilize include order · 180538c7
      Brad King authored
      Each source file has a logical first include file.  Include it in an
      isolated block so that tools that sort includes do not move them.
  16. 17 Nov, 2015 1 commit
    • Robert Dailey's avatar
      cmake-gui: Add option to specify generator toolset · 2b958a20
      Robert Dailey authored
      The -T parameter to CMake may now be specified through cmake-gui via a
      new text field in the first-time configure wizard (below the generator
      The generator factories specify whether or not they support toolsets.
      This information is propagated to the Qt code and used to determine if
      the selected generator should also display the optional Toolset widgets.
  17. 24 Oct, 2015 1 commit
  18. 21 Oct, 2015 1 commit
  19. 28 Aug, 2015 2 commits
  20. 27 May, 2015 2 commits
  21. 28 Apr, 2015 1 commit
  22. 20 Apr, 2015 1 commit