build

Automating Python package release process

女生的网名这么多〃 提交于 2020-12-27 08:58:07
问题 I've just started an open source Python project that I hope might be popular one day. At the moment to release a new version I have to do a few things. Test all the things. Edit mypackage.VERSION variable, which setup.py imports from __init__ Build packages and wheels with python setup.py sdist bdist_wheel Write a changelog entry to CHANGELOG file Commit my changes, echo some of that changelog Tag that commit as a release, copy that changelog entry over again. Drag in my built files so people

CMake variable with limited valid values

老子叫甜甜 提交于 2020-12-25 03:50:25
问题 In my CMake based project I have a variable in my CMakeLists.txt that enables what backend to target. The valid values for this variable are limited, say 6. I want to cache a list of the valid values so that the user can select which feature to enable. CMake should validate the variable. Is this possible and if so, how? 回答1: If you want to validate the allowable values, you'll need to do that yourself in your CMakeLists.txt file. You can, however, provide a list of values for CMake to present

CMake variable with limited valid values

大憨熊 提交于 2020-12-25 03:49:04
问题 In my CMake based project I have a variable in my CMakeLists.txt that enables what backend to target. The valid values for this variable are limited, say 6. I want to cache a list of the valid values so that the user can select which feature to enable. CMake should validate the variable. Is this possible and if so, how? 回答1: If you want to validate the allowable values, you'll need to do that yourself in your CMakeLists.txt file. You can, however, provide a list of values for CMake to present

Xcode快捷键

孤人 提交于 2020-12-19 02:48:55
其实就是设置里面的快捷键变成了文字版,费了我不少工夫。。。希望对大家有帮助 可能有些新手刚用mac,不知与windows键对应,现在说明一下,command相当于ms键盘的win键,option相当于alt,键值一样,系统偏好设置里面可以更改。 xcode相关: 关于xcode 可设 偏好设置 command+, 清空缓存 可设 隐藏xcode command+h 隐藏其它 command+option+h 显示全部 可设 退出xcode command+q 文件相关: 新建项目 command+shift+n 新建文件 command+n 新建空文件 command+control+n 打开 command+o 在新窗口中打开 command+option+o 快速打开 command+shift+d / command+shift+alt+d (不知区别是什么) 清空最近打开文件 可设 清空最近打开项目 可设 Get Info command+i 显示检查器? command+option+i (效果和Get Info一样,不知区别) 关闭窗口 command+w 关闭所有窗口 command+option+w 关闭当前项目 command+control+w 关闭当前文件 command+shift+w 保存文件 command+s 保存所有文件 command+option

DLL project doesn't build in Visual Studio 2019

匆匆过客 提交于 2020-12-15 06:15:31
问题 I'm using Visual Studio 2019 to build my project into DLL. But when i press build button a lot of errors appear that I didn't make ot that I didn't understand. I'm new in c++ so please be kind to me. Here is the error log: Severity Code Description Project File Line Suppression State Error C4430 missing type specifier - int assumed. Note: C++ does not support default-int robocadSimLibCpp D:\robocad\robocadSimLibCpp\robocadSimLibCpp\RE21mini.h 51 Error C3646 'imageFromCamera': unknown override

Download and build Lua with modern CMake

我是研究僧i 提交于 2020-12-13 04:03:03
问题 Let's try to build lua via cmake! Motivation: cmake is gaining more attention and support through IDEs like CLion or even Visual Studio 2017 (and newer). This is great if you want to provide platform-independent open-sources and faciliate the entire build-process. Now the problem is that creating a proper CMakeLists.txt isn't that straightforward in my opinion: cmake_minimum_required(VERSION 3.16) include(ExternalProject) set(LUA_VERSION "lua-5.3.5") ExternalProject_Add(lua URL https://www

Download and build Lua with modern CMake

雨燕双飞 提交于 2020-12-13 04:01:33
问题 Let's try to build lua via cmake! Motivation: cmake is gaining more attention and support through IDEs like CLion or even Visual Studio 2017 (and newer). This is great if you want to provide platform-independent open-sources and faciliate the entire build-process. Now the problem is that creating a proper CMakeLists.txt isn't that straightforward in my opinion: cmake_minimum_required(VERSION 3.16) include(ExternalProject) set(LUA_VERSION "lua-5.3.5") ExternalProject_Add(lua URL https://www

Stop command prompt from opening when running exe file built from haskell project

社会主义新天地 提交于 2020-12-12 09:39:30
问题 I have created a small application that uses the gloss library for a GUI. When typing "cabal run [cabal file]" the project is built and run, and only prompts the GUI. When I instead go and click on the .exe file that was generated from the build, the GUI opens but so does the command prompt. I want to stop the command prompt from opening and only have the window from gloss open. 回答1: By default on Windows GHC builds console programs, which open a Command Prompt terminal if one isn’t open

Stop command prompt from opening when running exe file built from haskell project

浪子不回头ぞ 提交于 2020-12-12 09:39:10
问题 I have created a small application that uses the gloss library for a GUI. When typing "cabal run [cabal file]" the project is built and run, and only prompts the GUI. When I instead go and click on the .exe file that was generated from the build, the GUI opens but so does the command prompt. I want to stop the command prompt from opening and only have the window from gloss open. 回答1: By default on Windows GHC builds console programs, which open a Command Prompt terminal if one isn’t open

Stop command prompt from opening when running exe file built from haskell project

旧街凉风 提交于 2020-12-12 09:38:05
问题 I have created a small application that uses the gloss library for a GUI. When typing "cabal run [cabal file]" the project is built and run, and only prompts the GUI. When I instead go and click on the .exe file that was generated from the build, the GUI opens but so does the command prompt. I want to stop the command prompt from opening and only have the window from gloss open. 回答1: By default on Windows GHC builds console programs, which open a Command Prompt terminal if one isn’t open