cmake: compilation statistics per transation unit

Following properties could be used to time compiler and linker invocations: RULE_LAUNCH_COMPILE RULE_LAUNCH_CUSTOM RULE_LAUNCH_LINK Those properties could be set globally, per directory and per target. That way you can only have a subset of your targets (say tests) to be impacted by this property. Also you can have different “launchers” for each target that also … Read more

Equivalents for mvn update and mvn install in gradle

Gradle will automatically fetch all required dependencies for you. Long story short: mvn update ~= ./gradlew build –refresh-dependencies mvn clean install ~= ./gradlew clean build TL;DR To force Gradle to redownload dependencies you can execute (How can I force gradle to redownload dependencies?): ./gradlew build –refresh-dependencies To assemble you project without executing tests (Gradle build … Read more

Can I pass arguments to angular-cli at build-time

It is possible to create multiple configuration files with @angular/cli. As mentioned in docs custom configuration files can be add in the following way: create a src/environments/environment.NAME.ts add { “NAME”: ‘src/environments/environment.NAME.ts’ } to the apps[0].environments object in .angular-cli.json use them via the –env=NAME flag on the build/serve commands. So, you would probably need 6 config … Read more

Cannot install Support repository and sync project in Android Studio

Previously the Android Support Library dependencies were downloaded from Android SDK Manager. Now all the new versions are available from Google’s Maven repository. In future all android libraries will be distributed through maven.google.com So, by adding the below code to the repositories will build the project. repositories { maven { url “https://maven.google.com” } }

VisualStudio Build Tools 2017 offline installer

All steps to install build tools: Download build tools Download layout files for offline installation: Possible workloads are specified here. Following command contains workloads for msbuild and C++ build tools. Run (exe file will have some version numbers in name): vs_BuildTools.exe –layout c:\BT2017offline –add Microsoft.VisualStudio.Workload.MSBuildTools –add Microsoft.VisualStudio.Workload.VCTools –add Microsoft.VisualStudio.Workload.WebBuildTools –add Microsoft.VisualStudio.Workload.NetCoreBuildTools –lang en-US Copy c:\BT2017offline … Read more

Android Studio Gradle BuildTools Revision

I had the same problem this morning after updating to .6.0. You need to change you gradle version in /projectName/build.gradle classpath ‘com.android.tools.build:gradle:0.11.+’ Open your SDK manager and download the new version of the build tools 19.1 then change the following line in /projectName/moduleName/build.gradle android { compileSdkVersion 19 buildToolsVersion “19.1” //This version needs to be updated … Read more

failed to find Build Tools revision 21.1.1 – sdk up to date

What worked for me was: android list sdk -a Which showed me the following list: 1- Android SDK Tools, revision 24.0.2 2- Android SDK Platform-tools, revision 21 3- Android SDK Build-tools, revision 21.1.2 4- Android SDK Build-tools, revision 21.1.1 5- Android SDK Build-tools, revision 21.1 6- Android SDK Build-tools, revision 21.0.2 7- Android SDK Build-tools, … Read more