diff options
author | dec05eba <dec05eba@protonmail.com> | 2018-10-06 02:59:36 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2020-07-06 07:39:33 +0200 |
commit | 31aa47522a0e644289ab606236fd5ccb505f9c54 (patch) | |
tree | cf3cd02b597866511f922c6793b3b5c0894836a3 | |
parent | 45e00fd7c7695adb9d69e8621ab76fdfa085900b (diff) |
Update README, use system platform for new project template
-rw-r--r-- | README.md | 2 | ||||
-rw-r--r-- | src/main.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -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<bool> 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; |