DemoCmds is a template and example project containing customized shape and command classes based on vgcore. You can customize the drawing behavior via implement your CmdObserve class.
You can use newproj.py to create your library project:
Type python newproj.py PrjName or double click the file 'newproj.py'.
-
Type
pod installorpod install --no-repo-updatewith CocoaPods. Need to removelibPods.afrom Link Binary With Libraries. -
Or open
ios/DemoCmds/DemoCmds.xcodeprojin Xcode, then build the library project. -
Or cd the 'ios' folder of this project and type
./build.shto buildios/output/libDemoCmds.a.- Type
./build.sh -arch arm64to make iOS libraries for iOS 64-bit. - Type
./build.sh cleanto remove object files.
- Type
-
Cd the 'android' directory of this project and type
./build.shto build with ndk-build. The librarylibDemoCmds.awill be outputed toandroid/DemoCmds/obj/local/armeabi.-
Type
./build.sh -Bto rebuild the native libraries. -
Type
./build.sh APP_ABI=x86to build for the x86 (Intel Atom) Emulator. -
MinGW and MSYS are recommend on Windows.
-
To regenerate the kernel JNI classes, type
./build.sh -swig(Need to install SWIG, and add the location to PATH).
-
-
Open
win\vs2010.slnin Visual Studio 2010, then build the DemoCmds library project. Or openwin\vs2008.slnin Visual Studio 2008. -
To regenerate
win/democmdslib/core/*.cs, please enterwindirectory and type./build.sh(Need to install SWIG, and add the location to PATH). Or change 'Excluded From Build' setting ofdemocmds|Swig Files|democmds.ias 'No' in Visual Studio to compile it.
- Cd the 'core' folder of this project and type
makeormake all installto generate libraries on Mac, Linux or Windows. - Type
make java,make pythonormake csharpto generate libraries for another language applications using Java, Python or C#. - Type
make clean java.clean python.cleanto remove the program object files.