implemented basics
This commit is contained in:
		
							
								
								
									
										34
									
								
								contrib/mongocxx/SConscript
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										34
									
								
								contrib/mongocxx/SConscript
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,34 @@ | ||||
| import os | ||||
|  | ||||
| Import("globalEnv") | ||||
|  | ||||
| env = globalEnv.Clone() | ||||
|  | ||||
| env["MONGOCXX_SRC"] = os.path.join(env["MONGOCXXPATH"], "mongo-cxx-driver") | ||||
|  | ||||
| cmake_build_path = os.path.join(env["MONGOCXX_LIB_PATH"], "cmake_build") | ||||
|  | ||||
| if not os.path.exists(cmake_build_path): | ||||
| 	os.makedirs(cmake_build_path) | ||||
|  | ||||
| if not os.path.exists(env["MONGOCXX_LIB_PATH"]): | ||||
| 	os.makedirs(env["MONGOCXX_LIB_PATH"]) | ||||
|  | ||||
| cwd = os.getcwd() | ||||
|  | ||||
| os.chdir(cmake_build_path) | ||||
|  | ||||
| cmakeCall = "cmake -DCMAKE_BUILD_TYPE=Release " | ||||
| cmakeCall += "-DCMAKE_INSTALL_PREFIX=" + env["MONGOCXX_LIB_PATH"] + " " | ||||
| cmakeCall += "-DCMAKE_PREFIX_PATH=" + env["MONGOC_LIB_PATH"] + " " | ||||
| cmakeCall += env["MONGOCXX_SRC"] | ||||
|  | ||||
| os.system(cmakeCall) | ||||
|  | ||||
| os.system("make EP_mnmlstc_core") | ||||
|  | ||||
| os.system("make") | ||||
|  | ||||
| os.system("make install") | ||||
|  | ||||
| os.chdir(cwd) | ||||
		Reference in New Issue
	
	Block a user