From 662613c196262a5fc07e07bbb8d2924952c583d3 Mon Sep 17 00:00:00 2001 From: Sacha Date: Sat, 30 Mar 2013 01:16:40 +1000 Subject: [PATCH] Build fix for CMake/Qt: etcpack -> rg_etc --- CMakeLists.txt | 14 +++++--------- Qt/Native.pro | 12 ++++-------- 2 files changed, 9 insertions(+), 17 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 837dc65024..8078b8db9e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -313,14 +313,10 @@ add_library(snappy STATIC ) include_directories(ext/snappy) -add_library(etcpack STATIC - native/ext/etcpack/etcdec.cpp - native/ext/etcpack/etcdec.h - native/ext/etcpack/etcpack.cpp - native/ext/etcpack/etcpack.h - native/ext/etcpack/image.cpp - native/ext/etcpack/image.h) -include_directories(native/ext/etcpack) +add_library(rg_etc STATIC + native/ext/rg_etc1/rg_etc1.cpp + native/ext/rg_etc1/rg_etc1.h) +include_directories(native/ext/rg_etc1) add_library(cityhash STATIC native/ext/cityhash/city.cpp @@ -602,7 +598,7 @@ add_library(native STATIC include_directories(native) # rapidxml is headers only so we can't make a lib specific for it include_directories(native/ext/rapidxml) -target_link_libraries(native ${LIBZIP} etcpack sha1 stb_image stb_vorbis #vjson +target_link_libraries(native ${LIBZIP} rg_etc sha1 stb_image stb_vorbis #vjson zlib snappy ${GLEW_LIBRARIES}) if(ANDROID) target_link_libraries(native log) diff --git a/Qt/Native.pro b/Qt/Native.pro index cf03e5536b..420888c42f 100755 --- a/Qt/Native.pro +++ b/Qt/Native.pro @@ -17,15 +17,11 @@ x86:!mobile_platform: { HEADERS += ../native/base/backtrace.h } -# EtcPack +# RG_ETC -SOURCES += ../native/ext/etcpack/etcdec.cpp \ - ../native/ext/etcpack/etcpack.cpp \ - ../native/ext/etcpack/image.cpp -HEADERS += ../native/ext/etcpack/etcdec.h \ - ../native/ext/etcpack/etcpack.h \ - ../native/ext/etcpack/image.h -INCLUDEPATH += ../native/ext/etcpack +SOURCES += ../native/ext/rg_etc1/rg_etc1.cpp +HEADERS += ../native/ext/rg_etc1/rg_etc1.h +INCLUDEPATH += ../native/ext/rg_etc1 # Cityhash SOURCES += ../native/ext/cityhash/city.cpp