From 31aa47522a0e644289ab606236fd5ccb505f9c54 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sat, 6 Oct 2018 02:59:36 +0200 Subject: Update README, use system platform for new project template --- README.md | 2 +- src/main.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index d9f2d4c..0fb9aeb 100644 --- a/README.md +++ b/README.md @@ -51,7 +51,7 @@ Libraries that are downloaded are available at: https://github.com/DEC05EBA/libr # Cross compilation Cross compilation currently only works from linux64 to win64 by using mingw-w64. You need to install `mingw-w64-gcc` and optionally `mingw-w64-pkg-config` if you want to use mingw-w64 system installed packages. Cross compilation does currently not work if you have zig files as zig doesn't support libc when cross compiling at the moment. -You can run `scripts/mingw_package.py` to automatically copy dynamic library dependencies of your executable to the same directory as the executable, so the library can be found when running the executable on windows; this also allows you to bundle your application and distribute it without external dependencies. +You can run `scripts/mingw_package.py` to automatically copy dynamic library dependencies of your executable to the same directory as the executable, so the library can be found when running the executable on windows; this also allows you to bundle your application and distribute it without external dependencies. To run `scripts/mingw_package.py` you need to install pefile python library `sudo pip install pefile`. # IDE support Sibs generates a compile_commands.json in the project root directory when executing `sibs build` and tools that support clang completion can be used, such as YouCompleteMe. There are several editors that support YouCompleteMe, including Vim, Emacs and Visual Studio Code. Visual studio code now also supports clang completion with C/C++ extension by Microsoft; the extension will ask you which compile_commands.json file you want to use and you can choose the compile_commands.json in the project root directory. diff --git a/src/main.cpp b/src/main.cpp index 29f6ba3..a3a7ed1 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -714,7 +714,7 @@ static Result newProjectCreateConf(const string &projectName, const string projectConfStr += "name = \"" + projectName + "\"\n"; projectConfStr += "type = \"" + projectType + "\"\n"; projectConfStr += "version = \"0.1.0\"\n"; - projectConfStr += "platforms = [\"any\"]\n\n"; + projectConfStr += "platforms = [\"" + string(SYSTEM_GENERIC_PLATFORM_NAME) + "\"]\n\n"; projectConfStr += "[dependencies]\n"; FileString projectConfPath = projectPath; -- cgit v1.2.3