diff options
author | Bastien Bouclet | 2016-09-15 09:42:07 +0200 |
---|---|---|
committer | Bastien Bouclet | 2016-09-15 12:44:57 +0200 |
commit | 7155f143103dbeb86a90c5c8de6e4743b50041fb (patch) | |
tree | 68e2f54d6ea22624955e8906185fa776a0cab0e3 /devtools/create_project/cmake.h | |
parent | 4c7d3c1857ee282a49c0f500f2ef9ca65e72360c (diff) | |
download | scummvm-rg350-7155f143103dbeb86a90c5c8de6e4743b50041fb.tar.gz scummvm-rg350-7155f143103dbeb86a90c5c8de6e4743b50041fb.tar.bz2 scummvm-rg350-7155f143103dbeb86a90c5c8de6e4743b50041fb.zip |
CREATE_PROJECT: Use SDL_Net2 when building with SDL2 for cmake
Diffstat (limited to 'devtools/create_project/cmake.h')
-rw-r--r-- | devtools/create_project/cmake.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/devtools/create_project/cmake.h b/devtools/create_project/cmake.h index ec7ff565c9..4d8663e689 100644 --- a/devtools/create_project/cmake.h +++ b/devtools/create_project/cmake.h @@ -53,11 +53,18 @@ protected: const char *getProjectExtension(); private: + enum SDLVersion { + kSDLVersionAny, + kSDLVersion1, + kSDLVersion2 + }; + /** * CMake properties for a library required by a feature */ struct Library { const char *feature; + SDLVersion sdlVersion; const char *module; const char *package; const char *includesVar; @@ -65,7 +72,7 @@ private: const char *libraries; }; - const Library *getLibraryFromFeature(const char *feature) const; + const Library *getLibraryFromFeature(const char *feature, bool useSDL2) const; void writeWarnings(std::ofstream &output) const; void writeDefines(const BuildSetup &setup, std::ofstream &output) const; @@ -75,7 +82,7 @@ private: void writeGeneratePluginsTable(std::ofstream &workspace) const; void writeEnginesLibrariesHandling(const BuildSetup &setup, std::ofstream &workspace) const; void writeEngineDefinitions(std::ofstream &workspace) const; - void writeFeatureLibSearch(std::ofstream &workspace, const char *feature) const; + void writeFeatureLibSearch(const BuildSetup &setup, std::ofstream &workspace, const char *feature) const; bool featureExcluded(const char *name) const; const EngineDesc &findEngineDesc(const std::string &name, const EngineDescList &engines) const; }; |