mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-01 14:58:14 +00:00
fix missing #include's and missing CMake linking directives
This commit is contained in:
1 parent
a0943beedf
commit
a13616e684
12 files changed
+16
-9
No files matched your search
@@ -8,6 +8,7 @@
|
||||
#include <ShellAPI.h>
|
||||
#else
|
||||
#include <pwd.h>
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
|
||||
#include <string>
|
||||
|
||||
+3
-2
@@ -1,7 +1,8 @@
|
||||
#pragma once
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
#include <cstdlib>
|
||||
#include <cstdio>
|
||||
#include <cstring>
|
||||
#include <string>
|
||||
|
||||
#include "base/basictypes.h"
|
||||
|
||||
@@ -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)
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
+1
-1
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
+2
-1
@@ -5,7 +5,8 @@
|
||||
// future.
|
||||
|
||||
#include <cmath>
|
||||
#include <stdio.h>
|
||||
#include <cstdio>
|
||||
#include <cstring>
|
||||
|
||||
#include "base/basictypes.h"
|
||||
#include "gfx/texture.h"
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user