I am writing some Python scripts that gathers data from an application written i C++ to plot and visualize the data. The C++ application projects are bundled in a relatively large Visual Studio 2012 solution file, while the Python scripts until now has been written separately in some other editor (eg Notepad ++).
Moreover, the C++ source, which sends the data to the Python script, is compiled using the Boost.Python bjam
command. This builds the required C++/Python libraries and creates a .pyd
extension module containing the desired C++ objects which I want to import into the script. This is done using a Jamroot.jam
file in the script directory.
I would like to integrate these Python scripts into my C++ solution. I have created a Python project within the solution already, but I don't know how to invoke the bjam
command on the C++ file.
Is there any way to set the project properties in Visual Studio to invoke the bjam
command and the Jamroot.jam
file?
You can invoke almost any command as a part of either a pre- or post-build step. The difference is that if you use post-build you will only update at the end of a successful build.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.