########################################################################################################### parser = argparse.ArgumentParser(description='Generates meta data source files.') parser.add_argument('-test', help='enables testing mode, internal only', action='store_true') args = parser.parse_args() scriptDir = os.path.dirname(os.path.realpath(__file__)) try: os.makedirs("temp") except: None # find SDK_ROOT, EXTERNALS and PX_SHARED sdkRoot = utils.find_root_path(scriptDir, "source") if os.path.isdir(os.path.join(sdkRoot, "../physx")): clangRoot = os.path.join(sdkRoot, "../externals/clang-physxmetadata/4.0.0") pxSharedRoot = os.path.join(sdkRoot, "../pxshared") else: clangRoot = os.path.normpath(os.environ['PM_clangMetadata_PATH']) pxSharedRoot = os.path.normpath(os.environ['PM_PxShared_PATH']) print("testmode:", args.test) print("root sdk:", sdkRoot) print("root clang:", clangRoot) print("root shared:", pxSharedRoot) boilerPlateFile = os.path.join(sdkRoot, os.path.normpath("tools/physxmetadatagenerator/PxBoilerPlate.h"))
description='Generates meta data source files.') parser.add_argument('-test', help='enables testing mode, internal only', action='store_true') args = parser.parse_args() scriptDir = os.path.dirname(os.path.realpath(__file__)) try: os.makedirs("temp") except: None # find SDK_ROOT, EXTERNALS and PX_SHARED sdkRoot = utils.find_root_path(scriptDir, "source") if os.path.isdir(os.path.join(sdkRoot, "../physx")): externalsRoot = os.path.join(sdkRoot, "../externals") pxSharedRoot = os.path.join(sdkRoot, "../pxshared") else: externalsRoot = os.path.join( utils.find_root_path(scriptDir, os.path.normpath("externals/clang")), "externals") pxSharedRoot = os.path.normpath(os.environ['PM_PxShared_PATH']) print("testmode:", args.test) print("root sdk:", sdkRoot) print("root externals:", externalsRoot) print("root shared:", pxSharedRoot)
description='Generates meta data source files.') parser.add_argument('-test', help='enables testing mode, internal only', action='store_true') args = parser.parse_args() scriptDir = os.path.dirname(os.path.realpath(__file__)) try: os.makedirs("temp") except: None # find SDK_ROOT, EXTERNALS and PX_SHARED sdkRoot = utils.find_root_path(scriptDir, "Source") if os.path.isdir(os.path.join(sdkRoot, "../PhysX_3.4")): externalsRoot = os.path.join(sdkRoot, "../Externals") pxSharedRoot = os.path.join(sdkRoot, "../PxShared") else: externalsRoot = os.path.join( utils.find_root_path(scriptDir, "externals/clang"), "externals") pxSharedRoot = os.path.join(utils.find_root_path(scriptDir, "PxShared"), os.path.normpath("PxShared/1.0/trunk")) print("testmode:", args.test) print("root sdk:", sdkRoot) print("root externals:", externalsRoot) print("root shared:", pxSharedRoot)