build

Using EJS without NodeJS

别说谁变了你拦得住时间么 提交于 2021-02-05 08:11:05
问题 I figured that the latest build release would allow me to use ejs globally without using node so I tried doing so. Though, when I try to use ejs.renderFile(params...), i get the error: TypeError: exports.fileLoader is not a function Which is just another node module. Is there a way to get around this? Note: This is the only time we use EJS at my company, so, if not, would you kindly point me in a good direction in how to render .ejs files. 回答1: Update: You can create an EJS object by running

CMake: wrong build target directory

≯℡__Kan透↙ 提交于 2021-02-04 19:20:43
问题 System : Linux anon-S 3.19.0-31-generic #36~14.04.1-Ubuntu SMP Thu Oct 8 10:21:08 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux CMake Version : anon@anon-S:~/$ cmake --version cmake version 3.2.2 Main CMakeLists.txt : cmake_minimum_required(VERSION 3.0) set(CMAKE_CXX_STANDARD 11) add_subdirectory(${PROJECT_SOURCE_DIR}/src) add_subdirectory(${PROJECT_SOURCE_DIR}/test) But anon@anon-S:/home/anon/project/build$ cmake .. -- Configuring done -- Generating done -- Build files have been written to: /home

Build event macros in Delphi XE

依然范特西╮ 提交于 2021-02-04 10:54:07
问题 According to Delphi's help file, when I open the dialog box to add build events to my project's options, the dialog box should show a list of macros (placeholders) that I can use on the command line for the build event. When I try this in Delphi XE, the list of macros is empty. The help file doesn't say which macros are available either (that I could find). So, which macros are available? Right now I need a macro for the full path to the compiled .exe file (post-build), and the full path to

Exporting cmake-gui options

元气小坏坏 提交于 2021-02-03 16:37:49
问题 I have a library with a bunch of different configuration options. We usually configure the build with cmake-gui and ticking a few checkboxes. I want to automate this into a .sh script using just cmake . e.g. In GUI -> selects a bunch of different options equivalent cmake command -> cmake -D CMAKE_XXX=X -D CMAKE_XXY=XXY [a bunch of options here] .. How can I find the "equivalent" cmake command-line command to any arbitrary configuration I choose from the GUI ? 回答1: The equivalent cmake command

Getting Jenkins build time when started

时光毁灭记忆、已成空白 提交于 2021-01-29 10:33:57
问题 I want to get the time when a build was started. I know the build name and number, but trick is the build may not have completed yet. The script can run on the Jenkins server or can be an API call. Any way I can accomplish that? 回答1: You can install ZenTimestamp Plugin and get the time stamp using BUILD_TIMESTAMP variable added by this plugin. Note: You need to specify SimpleDateFormat pattern (e.g. yyyyMMddHHmmss ). You must activate the Global Property! 回答2: Under the Jenkins job you will

How to build specific multiple targets parallelly using make?

江枫思渺然 提交于 2021-01-29 10:07:47
问题 There are three source files. Each source files are corresponding targets. For example, the target of a.cpp is a, b.cpp is b, and c.cpp is c. src/a.cpp b.cpp c.cpp build/ I can build the targets parallelly using -j option. For example, cd build make -j3 target a, b, and c build parallelly. Is there any way to specify some of targets and parallel build ? For example make -j2 a b Unfortunately, it works sequentially. First, build a and then build b . I want to build only a and b parallelly. I

GCC Linaro cross compile fails on linker step on a Windows host

一个人想着一个人 提交于 2021-01-29 09:26:33
问题 I want to build an ARM application(just a simple main function) on Windows host using GCC Linaro toolchains version 7.4.1. Compilation is OK, my .o files are created but on linking step I get the following errors(tested on different computers and result is same) Errors start from locale.o file... But that /home/tcwg-builds/.. directory is not related to my computer paths... Building target: arm_cpp Invoking: Cross G++ Linker arm-eabi-g++ -o "arm_cpp" ./src/arm_cpp.o c:/users/yunus/desktop

Android Studio generating old version APK

荒凉一梦 提交于 2021-01-29 08:32:55
问题 I looked at other solutions for the above problem, but none of them seem to resolve my issue. I am running AS 3.5.2, under Help/About/Check for new versions everything is showing as fully updated. I am using Windows. When I plug my phone into my computer, it runs the latest updated version. When I Build APK(s) under Build menu, and then install that version onto my phone, it is an old version. Up until about 2 weeks ago it was building APKs fine, and today after making a few code changes

VSO copy to task is failing for unknown reason

百般思念 提交于 2021-01-29 08:21:05
问题 I have a visual studio team services build setup. I have 2 steps so far. Visual Studio Build - this works beautifully Copy files - this works depending on where I set the target path too. Now I need the outputted files to be deployed to our application. There are multiple tasks to use: copy files, copy and publish build artifacts, publish build artifacts, etc. I decided on copy files because it seemed the most straight forward, and after all, I just need to copy files. :) My issue is that if

How to just compile only changed (or related) module in multi-module gradle project

半城伤御伤魂 提交于 2021-01-29 08:11:10
问题 I am having multi-module gradle project, which is having 5 modules. And these modules creates a lineage of dependency ie. A <- B <- C <- D <- E . Here A depends on B , B depends on C and so on. My problem is that, If i am going to change in A , it compile all the parent modules. Is there any way to just compile only A . And if i change in B then only compile A and B . 回答1: Yes, @JB Nizet you are correct i was using one of the scalaCompileOption property. tasks.withType(ScalaCompile) {