mirror of
https://github.com/libretro/ppsspp.git
synced 2024-11-30 20:01:00 +00:00
fix missing #include's and missing CMake linking directives
This commit is contained in:
parent
a0943beedf
commit
a13616e684
@ -8,6 +8,7 @@
|
||||
#include <ShellAPI.h>
|
||||
#else
|
||||
#include <pwd.h>
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
|
||||
#include <string>
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user