Skip to content

Commit

Permalink
Several fixes and cleanup to allow IJSVG to run normally in standalon…
Browse files Browse the repository at this point in the history
…e/original xcodeproj. Doing this in preparation of potentially adding IJSVG as a child project or submodule to SL
  • Loading branch information
mattreagan29 committed Dec 9, 2015
1 parent 64547c7 commit 16c4197
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 2 deletions.
10 changes: 10 additions & 0 deletions IJSVGExample/IJSVGExample.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -577,9 +577,15 @@
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
COMBINE_HIDPI_IMAGES = YES;
GCC_PREPROCESSOR_DEFINITIONS = (
"DEBUG=1",
"$(inherited)",
"IJSVG_EXAMPLE_TESTS_NO_FLIPPED_Y=1",
);
INFOPLIST_FILE = IJSVGExample/Info.plist;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks";
PRODUCT_NAME = "$(TARGET_NAME)";
SDKROOT = macosx10.11;
};
name = Debug;
};
Expand All @@ -591,6 +597,7 @@
INFOPLIST_FILE = IJSVGExample/Info.plist;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks";
PRODUCT_NAME = "$(TARGET_NAME)";
SDKROOT = macosx10.11;
};
name = Release;
};
Expand All @@ -606,10 +613,12 @@
GCC_PREPROCESSOR_DEFINITIONS = (
"DEBUG=1",
"$(inherited)",
"IJSVG_EXAMPLE_TESTS_NO_FLIPPED_Y=1",
);
INFOPLIST_FILE = IJSVGExampleTests/Info.plist;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks @loader_path/../Frameworks";
PRODUCT_NAME = "$(TARGET_NAME)";
SDKROOT = macosx;
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/IJSVGExample.app/Contents/MacOS/IJSVGExample";
};
name = Debug;
Expand All @@ -626,6 +635,7 @@
INFOPLIST_FILE = IJSVGExampleTests/Info.plist;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks @loader_path/../Frameworks";
PRODUCT_NAME = "$(TARGET_NAME)";
SDKROOT = macosx;
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/IJSVGExample.app/Contents/MacOS/IJSVGExample";
};
name = Release;
Expand Down
11 changes: 10 additions & 1 deletion source/IJSVG.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,16 @@
#import "IJSVGParser.h"
#import "IJSVGBezierPathAdditions.h"

#define IJSVG_USES_FLIPPED_Y_RENDERING 1
/* This is a baked-in value that determines whether the IJSVG
engine should use a flipped Y coordinate system. By default
this is now ON, however for the original IJSVG example app
and tests this should be disabled by default. */

#ifdef IJSVG_EXAMPLE_TESTS_NO_FLIPPED_Y
#define IJSVG_USES_FLIPPED_Y_RENDERING 0
#else
#define IJSVG_USES_FLIPPED_Y_RENDERING 1
#endif

@class IJSVG;

Expand Down
2 changes: 1 addition & 1 deletion source/IJSVGUtils.m
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ + (void)logParameters:(CGFloat *)param
{
[str appendFormat:@"%f ",param[i]];
}
DLog(@"%@",str);
NSLog(@"%@",str);
}

+ (CGFloat)floatValue:(NSString *)string
Expand Down

0 comments on commit 16c4197

Please sign in to comment.