Got rid of -ICore

This commit is contained in:
Lior Halphon 2017-10-13 00:02:02 +03:00
parent 27b5718b07
commit bbd3b7e550
10 changed files with 10 additions and 15 deletions

View File

@ -1,6 +1,6 @@
#import "AppDelegate.h" #import "AppDelegate.h"
#include "GBButtons.h" #include "GBButtons.h"
#include "gb.h" #include <Core/gb.h>
#import <Carbon/Carbon.h> #import <Carbon/Carbon.h>
@implementation AppDelegate @implementation AppDelegate

View File

@ -1,12 +1,12 @@
#include <AVFoundation/AVFoundation.h> #include <AVFoundation/AVFoundation.h>
#include <CoreAudio/CoreAudio.h> #include <CoreAudio/CoreAudio.h>
#include <Core/gb.h>
#include "GBAudioClient.h" #include "GBAudioClient.h"
#include "Document.h" #include "Document.h"
#include "AppDelegate.h" #include "AppDelegate.h"
#include "HexFiend/HexFiend.h" #include "HexFiend/HexFiend.h"
#include "GBMemoryByteArray.h" #include "GBMemoryByteArray.h"
#include "GBWarningPopover.h" #include "GBWarningPopover.h"
#include "gb.h"
/* Todo: The general Objective-C coding style conflicts with SameBoy's. This file needs a cleanup. */ /* Todo: The general Objective-C coding style conflicts with SameBoy's. This file needs a cleanup. */
/* Todo: Split into category files! This is so messy!!! */ /* Todo: Split into category files! This is so messy!!! */

View File

@ -1,5 +1,5 @@
#import <Foundation/Foundation.h> #import <Foundation/Foundation.h>
#import "apu.h" #import <Core/gb.h>
@interface GBAudioClient : NSObject @interface GBAudioClient : NSObject
@property (strong) void (^renderBlock)(UInt32 sampleRate, UInt32 nFrames, GB_sample_t *buffer); @property (strong) void (^renderBlock)(UInt32 sampleRate, UInt32 nFrames, GB_sample_t *buffer);

View File

@ -1,6 +1,6 @@
#import <Cocoa/Cocoa.h> #import <Cocoa/Cocoa.h>
#include <Core/gb.h>
#import "GBShader.h" #import "GBShader.h"
#include "gb.h"
@interface GBView : NSOpenGLView @interface GBView : NSOpenGLView
- (void) flip; - (void) flip;

View File

@ -42,7 +42,7 @@ endif
# Set compilation and linkage flags based on target, platform and configuration # Set compilation and linkage flags based on target, platform and configuration
CFLAGS += -Werror -Wall -std=gnu11 -ICore -D_GNU_SOURCE -DVERSION="$(VERSION)" -I. -D_USE_MATH_DEFINES CFLAGS += -Werror -Wall -std=gnu11 -D_GNU_SOURCE -DVERSION="$(VERSION)" -I. -D_USE_MATH_DEFINES
SDL_LDFLAGS := -lSDL2 SDL_LDFLAGS := -lSDL2
ifeq ($(PLATFORM),windows32) ifeq ($(PLATFORM),windows32)
CFLAGS += -IWindows CFLAGS += -IWindows

View File

@ -2,9 +2,9 @@
#include <stdbool.h> #include <stdbool.h>
#include <unistd.h> #include <unistd.h>
#include <assert.h> #include <assert.h>
#include <Core/gb.h>
#include "get_image_for_rom.h" #include "get_image_for_rom.h"
#include "gb.h"
#define LENGTH 60 * 10 #define LENGTH 60 * 10

View File

@ -1,7 +1,7 @@
#include <stdbool.h> #include <stdbool.h>
#include <signal.h> #include <signal.h>
#include <SDL2/SDL.h> #include <SDL2/SDL.h>
#include "gb.h" #include <Core/gb.h>
#include "utils.h" #include "utils.h"

View File

@ -13,9 +13,7 @@
#define snprintf _snprintf #define snprintf _snprintf
#endif #endif
#include "gb.h" #include <Core/gb.h>
#include "debugger.h"
#include "memory.h"
static bool running = false; static bool running = false;
static char *filename; static char *filename;

View File

@ -1,5 +1,4 @@
INCFLAGS := -I$(CORE_DIR) \ INCFLAGS := -I$(CORE_DIR)
-I$(CORE_DIR)/Core
SOURCES_C := $(CORE_DIR)/Core/gb.c \ SOURCES_C := $(CORE_DIR)/Core/gb.c \
$(CORE_DIR)/Core/apu.c \ $(CORE_DIR)/Core/apu.c \

View File

@ -14,9 +14,7 @@
#define snprintf _snprintf #define snprintf _snprintf
#endif #endif
#define GB_INTERNAL #include <Core/gb.h>
#include "gb.h"
#include "libretro.h" #include "libretro.h"
#ifdef _WIN32 #ifdef _WIN32