Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Commit

Permalink
[core] Move linux and osx to platform subdirectory
Browse files Browse the repository at this point in the history
  • Loading branch information
jfirebaugh committed Dec 11, 2015
1 parent 93c000d commit 0ff9295
Show file tree
Hide file tree
Showing 9 changed files with 15 additions and 17 deletions.
2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@
/config/*.gypi
/build
/lib
/macosx/build
/linux/build
/ios/build
/ios/app/build
/test/build
Expand Down
2 changes: 1 addition & 1 deletion gyp/linux.gyp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
'includes': [
'../linux/mapboxgl-app.gypi',
'../platform/linux/mapboxgl-app.gypi',
],

'conditions': [
Expand Down
4 changes: 2 additions & 2 deletions gyp/osx.gyp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
'includes': [
'../macosx/mapboxgl-app.gypi',
'../linux/mapboxgl-app.gypi',
'../platform/osx/mapboxgl-app.gypi',
'../platform/linux/mapboxgl-app.gypi',
'../test/test.gypi',
'../bin/render.gypi',
],
Expand Down
File renamed without changes.
10 changes: 5 additions & 5 deletions linux/mapboxgl-app.gypi → platform/linux/mapboxgl-app.gypi
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
'includes': [
'../gyp/common.gypi',
'../../gyp/common.gypi',
],
'targets': [
{ 'target_name': 'linuxapp',
Expand All @@ -18,10 +18,10 @@

'sources': [
'main.cpp',
'../platform/default/settings_json.cpp',
'../platform/default/glfw_view.hpp',
'../platform/default/glfw_view.cpp',
'../platform/default/log_stderr.cpp',
'../default/settings_json.cpp',
'../default/glfw_view.hpp',
'../default/glfw_view.cpp',
'../default/log_stderr.cpp',
],

'variables' : {
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
14 changes: 7 additions & 7 deletions macosx/mapboxgl-app.gypi → platform/osx/mapboxgl-app.gypi
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
'includes': [
'../gyp/common.gypi',
'../../gyp/common.gypi',
],
'targets': [
{ 'target_name': 'osxapp',
Expand All @@ -22,11 +22,11 @@

'sources': [
'./main.mm',
'../platform/darwin/settings_nsuserdefaults.hpp',
'../platform/darwin/settings_nsuserdefaults.mm',
'../platform/darwin/reachability.m',
'../platform/default/glfw_view.hpp',
'../platform/default/glfw_view.cpp',
'../darwin/settings_nsuserdefaults.hpp',
'../darwin/settings_nsuserdefaults.mm',
'../darwin/reachability.m',
'../default/glfw_view.hpp',
'../default/glfw_view.cpp',
],

'variables' : {
Expand Down Expand Up @@ -55,7 +55,7 @@
'OTHER_CPLUSPLUSFLAGS': [ '<@(cflags_cc)' ],
'OTHER_LDFLAGS': [ '<@(ldflags)' ],
'SDKROOT': 'macosx',
'INFOPLIST_FILE': '../macosx/Info.plist',
'INFOPLIST_FILE': '../platform/osx/Info.plist',
'CLANG_ENABLE_OBJC_ARC': 'YES'
},
}
Expand Down

0 comments on commit 0ff9295

Please sign in to comment.