fix missing #include's and missing CMake linking directives

This commit is contained in:
MrOrdinaire 2012-11-03 10:34:06 +08:00
parent a0943beedf
commit a13616e684
12 changed files with 16 additions and 9 deletions

View File

@ -8,6 +8,7 @@
#include <ShellAPI.h>
#else
#include <pwd.h>
#include <unistd.h>
#endif
#include <string>

View File

@ -1,7 +1,8 @@
#pragma once
#include <stdlib.h>
#include <stdio.h>
#include <cstdlib>
#include <cstdio>
#include <cstring>
#include <string>
#include "base/basictypes.h"

View File

@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 2.6)
add_library(etcdec etcdec.cpp)
#if UNIX
add_definitions(-PIC)
add_definitions(-fPIC)
add_library(etcpack etcpack.cpp)

View File

@ -1,7 +1,7 @@
cmake_minimum_required(VERSION 2.6)
#if(UNIX)
add_definitions(-PIC)
add_definitions(-fPIC)
add_definitions(-g)
add_definitions(-O2)
add_definitions(-Wall)

View File

@ -9,7 +9,7 @@
// If compiling with MFC, you might want to add #include "StdAfx.h"
#define _CRT_SECURE_NO_WARNINGS
#include "SHA1.h"
#include "sha1.h"
#ifdef SHA1_UTILITY_FUNCTIONS
#define SHA1_MAX_FILE_BUFFER (32 * 20 * 820)

View File

@ -1,7 +1,7 @@
cmake_minimum_required(VERSION 2.6)
#if(UNIX)
add_definitions(-PIC)
add_definitions(-fPIC)
add_definitions(-g)
add_definitions(-O2)
add_definitions(-Wall)

View File

@ -1,7 +1,7 @@
cmake_minimum_required(VERSION 2.6)
#if(UNIX)
add_definitions(-PIC)
add_definitions(-fPIC)
add_definitions(-g)
add_definitions(-O2)
add_definitions(-Wall)

View File

@ -1,7 +1,7 @@
cmake_minimum_required(VERSION 2.6)
#if(UNIX)
add_definitions(-PIC)
add_definitions(-fPIC)
add_definitions(-g)
add_definitions(-O2)
add_definitions(-Wall)

View File

@ -8,6 +8,7 @@ set(SRCS
set(SRCS ${SRCS})
add_library(file STATIC ${SRCS})
target_link_libraries(file general zip)
if(UNIX)
add_definitions(-fPIC)

View File

@ -5,7 +5,8 @@
// future.
#include <cmath>
#include <stdio.h>
#include <cstdio>
#include <cstring>
#include "base/basictypes.h"
#include "gfx/texture.h"

View File

@ -7,6 +7,8 @@ set(SRCS
set(SRCS ${SRCS})
add_library(gfx_es2 STATIC ${SRCS})
target_link_libraries(gfx_es2 general gfx)
target_link_libraries(gfx_es2 general file)
if(UNIX)
add_definitions(-fPIC)

View File

@ -3,6 +3,7 @@
#include <string>
#include <vector>
#include <cmath>
#include <cstring>
#include "ui/ui.h"
#include "gfx/texture_atlas.h"