build-system

When to use gradle.properties vs. settings.gradle?

谁说我不能喝 提交于 2019-12-02 15:02:37
A gradle build has three files build.gradle that defines the build configuration scripts gradle.properties settings.gradle Questions What are differences between settings.gradle & gradle.properties ? When should a settings be put in settings.gradle vs. gradle.properties ? settings.gradle The settings.gradle file is a Groovy script, just like the build.gradle file. Only one settings.gradle script will be executed in each build (in comparison to multiple build.gradle scripts in multi-project builds). The settings.gradle script will be executed before any build.gradle script and even before the

How to customize cmake output

巧了我就是萌 提交于 2019-12-01 19:39:07
For example, when compiling .c files, I want cmake to just print CC xxx.c to stdout, like linux kbuild. CMake output can be customized by suppressing the standard messages produced by CMake and outputting a custom message in a launcher script instead. Add the following code to your outermost CMakeLists.txt : set_property(GLOBAL PROPERTY RULE_MESSAGES OFF) set_property(GLOBAL PROPERTY RULE_LAUNCH_COMPILE "${CMAKE_SOURCE_DIR}/custom_output.sh") Setting the global RULE_MESSAGES property to OFF will suppress the standard messages. The global RULE_LAUNCH_COMPILE property is set to a custom launch

Using G++ to compile multiple *.cpp and *.h files in Sublime 2

99封情书 提交于 2019-12-01 08:22:49
问题 On a MAC I can successfully compile a c++ program from the command line using g++ *.cpp *.h -o executablename However it fails from within Sublime 2 - I created a build system for this using { "cmd" : ["g++", "*.cpp", "*.h", "-o", "executablename"] } With these results i686-apple-darwin11-llvm-g++-4.2: *.cpp: No such file or directory i686-apple-darwin11-llvm-g++-4.2: *.h: No such file or directory i686-apple-darwin11-llvm-g++-4.2: no input files [Finished in 0.0s with exit code 1] However,

Why use add_library({tgt} IMPORTED) versus target_link_libraries( -l {.so | .a})?

核能气质少年 提交于 2019-12-01 05:51:59
What is the purpose of using the statement: add_library(<tgt> [SHARED|STATIC] IMPORTED) From what I have found even if you create an imported library target above you still would need to specify the specific location of the actual .so or .a. This would take at least 3 cmake commands to link to an executable and the compiler still would not automatically search through the common include directories on your OS. Example: cmake code to link IMPORTED lib From the CMake documentation I understand there are really 3 ways to link a library that is not built as a target in a subproject of your overall

How do I configure the SVN HTTP proxy from the command line?

≯℡__Kan透↙ 提交于 2019-12-01 03:11:05
I script the set up of my build environment. (So the build process can bootstrap itself if it finds itself running on a clean image). As part of this process, certain dependencies are retrieved from public SVN repositories. The build machines sit behind a proxy, so I need to configure SVN to use the proxy. Several of the options that come immediately to mind are unpalatable for various reasons: I could edit the ~/.subversion/servers file manually, but I would far rather keep the build process as self-contained and as automated as possible. Alternatively, I could "proxy" the various public

What build systems work with Go? [closed]

非 Y 不嫁゛ 提交于 2019-11-30 17:51:36
I know that the Go source comes with a Makefile (It's in $GOROOT/doc ) which I am using right now, but have other popular build systems added support for Go yet? Has anyone written build scripts for scons , waf etc... What do you use to build your Go programs? I've been using scons; this is an example SConstruct file: archs = {'amd64': '6', '386': '8', 'arm': '5',} def gc(source, target, env, for_signature): targets = target[0] sources = ' '.join(str(s) for s in source) flags = '' for include in env.get('GOINCLUDE', []): flags += '-I %s ' % (include) return '%s -o %s %s %s' % (env['GOCOMPILER'

How to use libraries within my CMake project that need to be installed first?

不羁的心 提交于 2019-11-30 13:39:26
I have a problem with my CMake build system. There are CMakeLists.txt files defining runtimes or libraries or using ExternalProjects_Add() to download and build external code. Because of dependencies, those projects have to find each other. Now I want to have a CMakeLists.txt at the top level that builds all those at once. In order to find a project, is must be installed. But finding projects is already done at configuration time in CMake. repository ├─project │ ├─game (Depends on engine, uses EngineConfig.cmake once installed) │ │ ├─CMakeLists.txt │ │ ├─include │ │ ├─src │ │ └─textures │ ├

Why use add_library({tgt} IMPORTED) versus target_link_libraries( -l {.so | .a})?

喜你入骨 提交于 2019-11-30 05:01:45
问题 What is the purpose of using the statement: add_library(<tgt> [SHARED|STATIC] IMPORTED) From what I have found even if you create an imported library target above you still would need to specify the specific location of the actual .so or .a. This would take at least 3 cmake commands to link to an executable and the compiler still would not automatically search through the common include directories on your OS. Example: cmake code to link IMPORTED lib From the CMake documentation I understand

Sublime SFTP - Upload compiled css when sass file saved

拟墨画扇 提交于 2019-11-30 02:41:30
I'm developing html/css in Sublime. I'm writing my css with sass and using Sublime's build system to generate the css file on file save. It's also configured to upload on save using the SFTP plugin. My problem is that the generated css file doesn't get uploaded as that isn't the file I've directly saved. I've tried to see if there is a way for the SFTP plugin to upload all files that have been modified locally, but it doesn't seem to support that. Is there anything I can do to achieve this? I'll throw my solution into the mix, just in case anyone stumbles on this as I did and wants to stick as

What build systems work with Go? [closed]

北战南征 提交于 2019-11-30 01:49:02
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 3 years ago . I know that the Go source comes with a Makefile (It's in $GOROOT/doc ) which I am using right now, but have other popular build systems added support for Go yet? Has anyone written build scripts for scons, waf etc... What do you use to build your Go programs? 回答1: I've been using