GLTFImporter: exclude headers from build whem no_glft_importer is

defined.
pull/1302/head
Kim Kulling 2017-05-25 22:34:45 +02:00
parent 1bfff8ba1d
commit fb33199d99
3 changed files with 19 additions and 7 deletions

View File

@ -46,8 +46,10 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
* KHR_binary_glTF: full * KHR_binary_glTF: full
* KHR_materials_common: full * KHR_materials_common: full
*/ */
#ifndef glTFAsset_H_INC #ifndef GLTFASSET_H_INC
#define glTFAsset_H_INC #define GLTFASSET_H_INC
#ifndef ASSIMP_BUILD_NO_GLTF_IMPORTER
#include <map> #include <map>
#include <string> #include <string>
@ -1187,4 +1189,6 @@ namespace glTF
// Include the implementation of the methods // Include the implementation of the methods
#include "glTFAsset.inl" #include "glTFAsset.inl"
#endif #endif // ASSIMP_BUILD_NO_GLTF_IMPORTER
#endif // GLTFASSET_H_INC

View File

@ -46,8 +46,10 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
* KHR_binary_glTF: full * KHR_binary_glTF: full
* KHR_materials_common: full * KHR_materials_common: full
*/ */
#ifndef glTFAssetWriter_H_INC #ifndef GLTFASSETWRITER_H_INC
#define glTFAssetWriter_H_INC #define GLTFASSETWRITER_H_INC
#ifndef ASSIMP_BUILD_NO_GLTF_IMPORTER
#include "glTFAsset.h" #include "glTFAsset.h"
@ -88,4 +90,6 @@ public:
// Include the implementation of the methods // Include the implementation of the methods
#include "glTFAssetWriter.inl" #include "glTFAssetWriter.inl"
#endif #endif // ASSIMP_BUILD_NO_GLTF_IMPORTER
#endif // GLTFASSETWRITER_H_INC

View File

@ -45,6 +45,8 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#ifndef AI_GLTFEXPORTER_H_INC #ifndef AI_GLTFEXPORTER_H_INC
#define AI_GLTFEXPORTER_H_INC #define AI_GLTFEXPORTER_H_INC
#ifndef ASSIMP_BUILD_NO_GLTF_IMPORTER
#include <assimp/types.h> #include <assimp/types.h>
#include <assimp/material.h> #include <assimp/material.h>
@ -111,4 +113,6 @@ namespace Assimp
} }
#endif #endif // ASSIMP_BUILD_NO_GLTF_IMPORTER
#endif // AI_GLTFEXPORTER_H_INC