C++学习(三三八)RSP文件
Posted hankern
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了C++学习(三三八)RSP文件相关的知识,希望对你有一定的参考价值。
RSP( Response Text File),是一种资源文件,用编程软件或文本编辑工具可以打开,如VC++、Notepad等等。
.RSP 文件包含一个或多个命令行参数,由包含在.NET 编译器平台(也称为Roslyn)中的C#编译器(CSC)使用。它可以存储一个或多个编译器选项以及要编译的一个或多个源代码文件的名称。.RSP 文件以纯文本格式保存,并由CSC在每次编译时处理。
.RSP 文件允许您列出要由CSC处理的编译器选项和源代码文件,就像您在命令行中指定它们一样。如果.RSP 文件仅存储一个编译器选项规范,则应将其限制为一行。多个编译器选项和源代码文件可能出现在多行或一行上。
#用于.RSP 文件中的注释,@用于在编译中指定多个.RSP 文件。例如@sample.rsp@sample2.rsp@sample3.rsp指定要编译的sample.rsp、sample2.rsp和sample3.rsp文件。
注意:csc.rps文件与csc(csc.exe文件)一起部署,并引用随.NET 框架提供的所有程序集。如果指定了-nopconfig选项,csc将不处理csc.rps文件。
一个例子:
osgEarth.rsp
src/osgEarth/CMakeFiles/osgEarth.dir/tinystr.cpp.o src/osgEarth/CMakeFiles/osgEarth.dir/tinyxml.cpp.o src/osgEarth/CMakeFiles/osgEarth.dir/tinyxmlerror.cpp.o src/osgEarth/CMakeFiles/osgEarth.dir/tinyxmlparser.cpp.o src/osgEarth/CMakeFiles/osgEarth.dir/Bounds.cpp.o src/osgEarth/CMakeFiles/osgEarth.dir/Cache.cpp.o src/osgEarth/CMakeFiles/osgEarth.dir/CacheBin.cpp.o src/osgEarth/CMakeFiles/osgEarth.dir/CacheEstimator.cpp.o src/osgEarth/CMakeFiles/osgEarth.dir/CachePolicy.cpp.o src/osgEarth/CMakeFiles/osgEarth.dir/CacheSeed.cpp.o src/osgEarth/CMakeFiles/osgEarth.dir/Capabilities.cpp.o src/osgEarth/CMakeFiles/osgEarth.dir/Clamping.cpp.o src/osgEarth/CMakeFiles/osgEarth.dir/ClampableNode.cpp.o src/osgEarth/CMakeFiles/osgEarth.dir/ClampingTechnique.cpp.o src/osgEarth/CMakeFiles/osgEarth.dir/ColorFilter.cpp.o src/osgEarth/CMakeFiles/osgEarth.dir/CompositeTileSource.cpp.o src/osgEarth/CMakeFiles/osgEarth.dir/Config.cpp.o src/osgEarth/CMakeFiles/osgEarth.dir/Cube.cpp.o src/osgEarth/CMakeFiles/osgEarth.dir/CullingUtils.cpp.o src/osgEarth/CMakeFiles/osgEarth.dir/DateTime.cpp.o src/osgEarth/CMakeFiles/osgEarth.dir/DateTimeRange.cpp.o src/osgEarth/CMakeFiles/osgEarth.dir/DepthOffset.cpp.o src/osgEarth/CMakeFiles/osgEarth.dir/DrapeableNode.cpp.o src/osgEarth/CMakeFiles/osgEarth.dir/DrapingCullSet.cpp.o src/osgEarth/CMakeFiles/osgEarth.dir/DrapingTechnique.cpp.o src/osgEarth/CMakeFiles/osgEarth.dir/DrawInstanced.cpp.o src/osgEarth/CMakeFiles/osgEarth.dir/ECEF.cpp.o src/osgEarth/CMakeFiles/osgEarth.dir/ElevationLayer.cpp.o src/osgEarth/CMakeFiles/osgEarth.dir/ElevationLOD.cpp.o src/osgEarth/CMakeFiles/osgEarth.dir/ElevationPool.cpp.o src/osgEarth/CMakeFiles/osgEarth.dir/ElevationQuery.cpp.o src/osgEarth/CMakeFiles/osgEarth.dir/Extension.cpp.o src/osgEarth/CMakeFiles/osgEarth.dir/FadeEffect.cpp.o src/osgEarth/CMakeFiles/osgEarth.dir/FileUtils.cpp.o src/osgEarth/CMakeFiles/osgEarth.dir/GeoData.cpp.o src/osgEarth/CMakeFiles/osgEarth.dir/Geoid.cpp.o src/osgEarth/CMakeFiles/osgEarth.dir/GeoMath.cpp.o src/osgEarth/CMakeFiles/osgEarth.dir/GeoTransform.cpp.o src/osgEarth/CMakeFiles/osgEarth.dir/GeometryClamper.cpp.o src/osgEarth/CMakeFiles/osgEarth.dir/GLSLChunker.cpp.o src/osgEarth/CMakeFiles/osgEarth.dir/HeightFieldUtils.cpp.o src/osgEarth/CMakeFiles/osgEarth.dir/Horizon.cpp.o src/osgEarth/CMakeFiles/osgEarth.dir/HTTPClient.cpp.o src/osgEarth/CMakeFiles/osgEarth.dir/ImageLayer.cpp.o src/osgEarth/CMakeFiles/osgEarth.dir/ImageMosaic.cpp.o src/osgEarth/CMakeFiles/osgEarth.dir/ImageToHeightFieldConverter.cpp.o src/osgEarth/CMakeFiles/osgEarth.dir/ImageUtils.cpp.o src/osgEarth/CMakeFiles/osgEarth.dir/IntersectionPicker.cpp.o src/osgEarth/CMakeFiles/osgEarth.dir/IOTypes.cpp.o src/osgEarth/CMakeFiles/osgEarth.dir/JsonUtils.cpp.o src/osgEarth/CMakeFiles/osgEarth.dir/LandCover.cpp.o src/osgEarth/CMakeFiles/osgEarth.dir/LandCoverLayer.cpp.o src/osgEarth/CMakeFiles/osgEarth.dir/Layer.cpp.o src/osgEarth/CMakeFiles/osgEarth.dir/Lighting.cpp.o src/osgEarth/CMakeFiles/osgEarth.dir/Locators.cpp.o src/osgEarth/CMakeFiles/osgEarth.dir/LocalTangentPlane.cpp.o src/osgEarth/CMakeFiles/osgEarth.dir/Map.cpp.o src/osgEarth/CMakeFiles/osgEarth.dir/MapCallback.cpp.o src/osgEarth/CMakeFiles/osgEarth.dir/MapFrame.cpp.o src/osgEarth/CMakeFiles/osgEarth.dir/MapInfo.cpp.o src/osgEarth/CMakeFiles/osgEarth.dir/MapNode.cpp.o src/osgEarth/CMakeFiles/osgEarth.dir/MapNodeOptions.cpp.o src/osgEarth/CMakeFiles/osgEarth.dir/MapOptions.cpp.o src/osgEarth/CMakeFiles/osgEarth.dir/MaskLayer.cpp.o src/osgEarth/CMakeFiles/osgEarth.dir/MaskNode.cpp.o src/osgEarth/CMakeFiles/osgEarth.dir/MaskSource.cpp.o src/osgEarth/CMakeFiles/osgEarth.dir/MemCache.cpp.o src/osgEarth/CMakeFiles/osgEarth.dir/Memory.cpp.o src/osgEarth/CMakeFiles/osgEarth.dir/MetaTile.cpp.o src/osgEarth/CMakeFiles/osgEarth.dir/Metrics.cpp.o src/osgEarth/CMakeFiles/osgEarth.dir/MimeTypes.cpp.o src/osgEarth/CMakeFiles/osgEarth.dir/ModelLayer.cpp.o src/osgEarth/CMakeFiles/osgEarth.dir/ModelSource.cpp.o src/osgEarth/CMakeFiles/osgEarth.dir/NodeUtils.cpp.o src/osgEarth/CMakeFiles/osgEarth.dir/Notify.cpp.o src/osgEarth/CMakeFiles/osgEarth.dir/ObjectIndex.cpp.o src/osgEarth/CMakeFiles/osgEarth.dir/OverlayDecorator.cpp.o src/osgEarth/CMakeFiles/osgEarth.dir/PagedNode.cpp.o src/osgEarth/CMakeFiles/osgEarth.dir/PatchLayer.cpp.o src/osgEarth/CMakeFiles/osgEarth.dir/PhongLightingEffect.cpp.o src/osgEarth/CMakeFiles/osgEarth.dir/PrimitiveIntersector.cpp.o src/osgEarth/CMakeFiles/osgEarth.dir/Profile.cpp.o src/osgEarth/CMakeFiles/osgEarth.dir/Profiler.cpp.o src/osgEarth/CMakeFiles/osgEarth.dir/Progress.cpp.o src/osgEarth/CMakeFiles/osgEarth.dir/Random.cpp.o src/osgEarth/CMakeFiles/osgEarth.dir/Registry.cpp.o src/osgEarth/CMakeFiles/osgEarth.dir/ResourceReleaser.cpp.o src/osgEarth/CMakeFiles/osgEarth.dir/Revisioning.cpp.o src/osgEarth/CMakeFiles/osgEarth.dir/SceneGraphCallback.cpp.o src/osgEarth/CMakeFiles/osgEarth.dir/ScreenSpaceLayout.cpp.o src/osgEarth/CMakeFiles/osgEarth.dir/ShaderFactory.cpp.o src/osgEarth/CMakeFiles/osgEarth.dir/ShaderGenerator.cpp.o src/osgEarth/CMakeFiles/osgEarth.dir/ShaderLoader.cpp.o src/osgEarth/CMakeFiles/osgEarth.dir/ShaderUtils.cpp.o src/osgEarth/CMakeFiles/osgEarth.dir/Shadowing.cpp.o src/osgEarth/CMakeFiles/osgEarth.dir/SimplexNoise.cpp.o src/osgEarth/CMakeFiles/osgEarth.dir/SpatialReference.cpp.o src/osgEarth/CMakeFiles/osgEarth.dir/StateSetCache.cpp.o src/osgEarth/CMakeFiles/osgEarth.dir/StateSetLOD.cpp.o src/osgEarth/CMakeFiles/osgEarth.dir/Status.cpp.o src/osgEarth/CMakeFiles/osgEarth.dir/StringUtils.cpp.o src/osgEarth/CMakeFiles/osgEarth.dir/TaskService.cpp.o src/osgEarth/CMakeFiles/osgEarth.dir/Terrain.cpp.o src/osgEarth/CMakeFiles/osgEarth.dir/TerrainLayer.cpp.o src/osgEarth/CMakeFiles/osgEarth.dir/TerrainOptions.cpp.o src/osgEarth/CMakeFiles/osgEarth.dir/TerrainEngineNode.cpp.o src/osgEarth/CMakeFiles/osgEarth.dir/TerrainResources.cpp.o src/osgEarth/CMakeFiles/osgEarth.dir/TerrainTileModel.cpp.o src/osgEarth/CMakeFiles/osgEarth.dir/TerrainTileModelFactory.cpp.o src/osgEarth/CMakeFiles/osgEarth.dir/Tessellator.cpp.o src/osgEarth/CMakeFiles/osgEarth.dir/TextureBufferSerializer.cpp.o src/osgEarth/CMakeFiles/osgEarth.dir/TileKey.cpp.o src/osgEarth/CMakeFiles/osgEarth.dir/TileHandler.cpp.o src/osgEarth/CMakeFiles/osgEarth.dir/TileRasterizer.cpp.o src/osgEarth/CMakeFiles/osgEarth.dir/TileVisitor.cpp.o src/osgEarth/CMakeFiles/osgEarth.dir/TileSource.cpp.o src/osgEarth/CMakeFiles/osgEarth.dir/TimeControl.cpp.o src/osgEarth/CMakeFiles/osgEarth.dir/TraversalData.cpp.o src/osgEarth/CMakeFiles/osgEarth.dir/ThreadingUtils.cpp.o src/osgEarth/CMakeFiles/osgEarth.dir/Units.cpp.o src/osgEarth/CMakeFiles/osgEarth.dir/URI.cpp.o src/osgEarth/CMakeFiles/osgEarth.dir/Utils.cpp.o src/osgEarth/CMakeFiles/osgEarth.dir/Version.cpp.o src/osgEarth/CMakeFiles/osgEarth.dir/VerticalDatum.cpp.o src/osgEarth/CMakeFiles/osgEarth.dir/VideoLayer.cpp.o src/osgEarth/CMakeFiles/osgEarth.dir/Viewpoint.cpp.o src/osgEarth/CMakeFiles/osgEarth.dir/VirtualProgram.cpp.o src/osgEarth/CMakeFiles/osgEarth.dir/VisibleLayer.cpp.o src/osgEarth/CMakeFiles/osgEarth.dir/XmlUtils.cpp.o src/osgEarth/CMakeFiles/osgEarth.dir/AutoGenShaders.cpp.o -LE:/Projects/QT5.12/osg_earth_android_build/osgEarth/lib -Wl,-Bstatic -lm -Wl,-Bdynamic D:/OSG_OSGEARTH_Android/lib64/libosgd.a D:/OSG_OSGEARTH_Android/lib64/libosgUtild.a D:/OSG_OSGEARTH_Android/lib64/libosgSimd.a D:/OSG_OSGEARTH_Android/lib64/libosgTerraind.a D:/OSG_OSGEARTH_Android/lib64/libosgDBd.a D:/OSG_OSGEARTH_Android/lib64/libosgFXd.a D:/OSG_OSGEARTH_Android/lib64/libosgViewerd.a D:/OSG_OSGEARTH_Android/lib64/libosgTextd.a D:/OSG_OSGEARTH_Android/lib64/libosgGAd.a D:/OSG_OSGEARTH_Android/lib64/libosgShadowd.a D:/OSG_OSGEARTH_Android/lib64/libOpenThreadsd.a E:/Projects/QT5.12/osg_earth_src/osg/osg3.6/3rdparty/build/curl/obj/local/armeabi/libcurl.a E:/Projects/QT5.12/osg_earth_src/osg/osg3.6/3rdparty/build/gdal/obj/local/armeabi-v7a/libgdal.a -Wl,-Bstatic -lz -Wl,-Bdynamic D:/OSG_OSGEARTH_Android/lib64/libosgManipulatord.a D:/OSG_OSGEARTH_Android/lib64/libOpenThreadsd.a E:/Projects/QT5.12/osg_earth_src/osg/osg3.6/3rdparty/build/curl/obj/local/armeabi/libcurl.a E:/Projects/QT5.12/osg_earth_src/osg/osg3.6/3rdparty/build/gdal/obj/local/armeabi-v7a/libgdal.a -Wl,-Bstatic -lz -Wl,-Bdynamic D:/OSG_OSGEARTH_Android/lib64/libosgManipulatord.a -latomic -lm
使用:
cmd.exe /C "cd . && D:\\android-ndk-r19c\\toolchains\\llvm\\prebuilt\\windows-x86_64\\bin\\clang++.exe --target=aarch64-none-linux-android28 --gcc-toolchain=D:/android-ndk-r19c/toolchains/llvm/prebuilt/windows-x86_64 --sysroot=D:/android-ndk-r19c/toolchains/llvm/prebuilt/windows-x86_64/sysroot -fPIC -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -fno-addrsig -Wa,--noexecstack -Wformat -Werror=format-security -stdlib=libc++ -O0 -fno-limit-debug-info -Wl,--exclude-libs,libgcc.a -Wl,--exclude-libs,libatomic.a -static-libstdc++ -Wl,--build-id -Wl,--warn-shared-textrel -Wl,--fatal-warnings -Wl,--no-undefined -Qunused-arguments -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -shared -Wl,-soname,libosgEarthd.so -o lib\\libosgEarthd.so @CMakeFiles\\osgEarth.rsp && cd ."
以上是关于C++学习(三三八)RSP文件的主要内容,如果未能解决你的问题,请参考以下文章