--- /dev/null
+#!/usr/bin/env python
+#-*- coding:utf-8 -*-
+
+import os.path
+import platform
+
+def set_env(env, prereq_dir, version):
+ env.set('RAPIDJSONDIR', prereq_dir)
+ env.set('RAPIDJSON_ROOT_DIR', prereq_dir) # update for cmake
+ env.prepend('PATH', os.path.join(prereq_dir, 'bin'))
+ if platform.system() == "Windows" :
+ env.prepend('LIBS', os.path.join(prereq_dir, 'lib'))
+ else:
+ env.prepend('LD_LIBRARY_PATH', os.path.join(prereq_dir, 'lib'))
+
+def set_nativ_env(env):
+ #env.set('RAPIDJSON_ROOT_DIR', '/usr') # update for cmake
+ #env.set('RAPIDJSONDIR', '/usr')
+ pass
--- /dev/null
+default :
+{
+ name : "rapidjson"
+ build_source : "script"
+ compil_script : $name + $VARS.scriptExtension
+ get_source : "archive"
+ system_info :
+ {
+ rpm : ["rapidjson"]
+ rpm_dev : ["rapidjson-devel"]
+ apt : []
+ apt_dev : []
+ }
+ patches : []
+ environ :
+ {
+ env_script : $name + ".py"
+ }
+ depend : []
+ source_dir : $APPLICATION.workdir + $VARS.sep + 'SOURCES' + $VARS.sep + $name
+ build_dir : $APPLICATION.workdir + $VARS.sep + 'BUILD' + $VARS.sep + $name
+ install_dir : 'base'
+ properties :
+ {
+ incremental : "yes"
+ single_install_dir : "yes"
+ }
+}
+
+version_1_1_0:
+{
+ compil_script : "rapidjson-1.1.0.sh"
+ patches : []
+}
+
+version_1_1_0_win:
+{
+ compil_script : "rapidjson.bat"
+ patches : []
+}
+