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"
#include "GBButtons.h"
#include "gb.h"
#include <Core/gb.h>
#import <Carbon/Carbon.h>
@implementation AppDelegate

View File

@ -1,12 +1,12 @@
#include <AVFoundation/AVFoundation.h>
#include <CoreAudio/CoreAudio.h>
#include <Core/gb.h>
#include "GBAudioClient.h"
#include "Document.h"
#include "AppDelegate.h"
#include "HexFiend/HexFiend.h"
#include "GBMemoryByteArray.h"
#include "GBWarningPopover.h"
#include "gb.h"
/* 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!!! */

View File

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

View File

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

View File

@ -42,7 +42,7 @@ endif
# 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
ifeq ($(PLATFORM),windows32)
CFLAGS += -IWindows

View File

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

View File

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

View File

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

View File

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

View File

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