Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
start [2023/07/24 15:25] devastart [2026/03/23 16:29] (current) deva
Line 8: Line 8:
 "'ctor" is an often used short-hand form of the word "constructor" referring to the class function that sets up the internals of an object in object oriented programming - so the intended pronunciation of "ctor" is //constructor// but sometimes also referred to as //see-tor//. "'ctor" is an often used short-hand form of the word "constructor" referring to the class function that sets up the internals of an object in object oriented programming - so the intended pronunciation of "ctor" is //constructor// but sometimes also referred to as //see-tor//.
  
-Ctor.cc is a C++ based build system, making it possible to configure and build complex projects without writing a single line of non-C++.+Ctor is a C++ based build system, making it possible to configure and build complex projects without writing a single line of non-C++.
  
 It aims towards the feature-richness found in auto-tools and beyond, but with a compilation speed rivalling that of raw makefiles. It aims towards the feature-richness found in auto-tools and beyond, but with a compilation speed rivalling that of raw makefiles.
Line 49: Line 49:
 ctor::build_configurations myConfigs(const ctor::settings& settings) ctor::build_configurations myConfigs(const ctor::settings& settings)
 { {
-  return +  return { 
-    { +    ctor::build_configuration
-      +      ctor::target{"hello"},  // output filename (hello or hello.exe) 
-        .target "hello",  // output filename +      ctor::sources{ "hello.cc", "world.cc" }, // list of source files to compile 
-        .sources { "hello.cc", "world.cc" }, // list of source files to compile +      ctor::cxx_flags{"-Wall", "-Werror"}, // c++ compilation flags 
-        // See ctor.h for more options +      // See ctor.h for more options 
-      } +    }};
-    };+
 } }
 } }