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 install
orpod install --no-repo-update
with CocoaPods. Need to removelibPods.a
from Link Binary With Libraries. -
Or open
ios/DemoCmds/DemoCmds.xcodeproj
in Xcode, then build the library project. -
Or cd the 'ios' folder of this project and type
./build.sh
to buildios/output/libDemoCmds.a
.- Type
./build.sh -arch arm64
to make iOS libraries for iOS 64-bit. - Type
./build.sh clean
to remove object files.
- Type
-
Cd the 'android' directory of this project and type
./build.sh
to build with ndk-build. The librarylibDemoCmds.a
will be outputed toandroid/DemoCmds/obj/local/armeabi
.-
Type
./build.sh -B
to rebuild the native libraries. -
Type
./build.sh APP_ABI=x86
to 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.sln
in Visual Studio 2010, then build the DemoCmds library project. Or openwin\vs2008.sln
in Visual Studio 2008. -
To regenerate
win/democmdslib/core/*.cs
, please enterwin
directory and type./build.sh
(Need to install SWIG, and add the location to PATH). Or change 'Excluded From Build' setting ofdemocmds|Swig Files|democmds.i
as 'No' in Visual Studio to compile it.
- Cd the 'core' folder of this project and type
make
ormake all install
to generate libraries on Mac, Linux or Windows. - Type
make java
,make python
ormake csharp
to generate libraries for another language applications using Java, Python or C#. - Type
make clean java.clean python.clean
to remove the program object files.