Skip to content

Commit 08c541c

Browse files
committed
add apps/Menu
1 parent 530cfd8 commit 08c541c

10 files changed

Lines changed: 429 additions & 0 deletions

File tree

Lines changed: 266 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,266 @@
1+
// !$*UTF8*$!
2+
{
3+
archiveVersion = 1;
4+
classes = {
5+
};
6+
objectVersion = 47;
7+
objects = {
8+
9+
/* Begin PBXBuildFile section */
10+
34496A211E188C0E00276D0B /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 34496A201E188C0E00276D0B /* AppDelegate.m */; };
11+
34496A241E188C0E00276D0B /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 34496A231E188C0E00276D0B /* main.m */; };
12+
34496A261E188C0E00276D0B /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 34496A251E188C0E00276D0B /* Assets.xcassets */; };
13+
34496A291E188C0E00276D0B /* MainMenu.xib in Resources */ = {isa = PBXBuildFile; fileRef = 34496A271E188C0E00276D0B /* MainMenu.xib */; };
14+
34D423381E18ECE5000E4154 /* libc++.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 34D423371E18ECE5000E4154 /* libc++.dylib */; };
15+
34D4233A1E18ED79000E4154 /* libkrbn.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 34D423391E18ED79000E4154 /* libkrbn.a */; };
16+
/* End PBXBuildFile section */
17+
18+
/* Begin PBXFileReference section */
19+
34496A1C1E188C0E00276D0B /* Karabiner-Menu.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "Karabiner-Menu.app"; sourceTree = BUILT_PRODUCTS_DIR; };
20+
34496A1F1E188C0E00276D0B /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = "<group>"; };
21+
34496A201E188C0E00276D0B /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = "<group>"; };
22+
34496A231E188C0E00276D0B /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = "<group>"; };
23+
34496A251E188C0E00276D0B /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
24+
34496A281E188C0E00276D0B /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/MainMenu.xib; sourceTree = "<group>"; };
25+
34496A2A1E188C0E00276D0B /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
26+
34D423351E18ECB5000E4154 /* libkrbn.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = libkrbn.h; path = ../../lib/libkrbn/libkrbn.h; sourceTree = "<group>"; };
27+
34D423371E18ECE5000E4154 /* libc++.dylib */ = {isa = PBXFileReference; lastKnownFileType = "compiled.mach-o.dylib"; name = "libc++.dylib"; path = "../../../../../../../usr/lib/libc++.dylib"; sourceTree = "<group>"; };
28+
34D423391E18ED79000E4154 /* libkrbn.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; name = libkrbn.a; path = ../lib/libkrbn/build/Release/libkrbn.a; sourceTree = "<group>"; };
29+
/* End PBXFileReference section */
30+
31+
/* Begin PBXFrameworksBuildPhase section */
32+
34496A191E188C0E00276D0B /* Frameworks */ = {
33+
isa = PBXFrameworksBuildPhase;
34+
buildActionMask = 2147483647;
35+
files = (
36+
34D4233A1E18ED79000E4154 /* libkrbn.a in Frameworks */,
37+
34D423381E18ECE5000E4154 /* libc++.dylib in Frameworks */,
38+
);
39+
runOnlyForDeploymentPostprocessing = 0;
40+
};
41+
/* End PBXFrameworksBuildPhase section */
42+
43+
/* Begin PBXGroup section */
44+
34496A131E188C0E00276D0B = {
45+
isa = PBXGroup;
46+
children = (
47+
34496A1E1E188C0E00276D0B /* Menu */,
48+
34496A1D1E188C0E00276D0B /* Products */,
49+
34D423361E18ECE5000E4154 /* Frameworks */,
50+
);
51+
sourceTree = "<group>";
52+
};
53+
34496A1D1E188C0E00276D0B /* Products */ = {
54+
isa = PBXGroup;
55+
children = (
56+
34496A1C1E188C0E00276D0B /* Karabiner-Menu.app */,
57+
);
58+
name = Products;
59+
sourceTree = "<group>";
60+
};
61+
34496A1E1E188C0E00276D0B /* Menu */ = {
62+
isa = PBXGroup;
63+
children = (
64+
34496A1F1E188C0E00276D0B /* AppDelegate.h */,
65+
34496A201E188C0E00276D0B /* AppDelegate.m */,
66+
34496A251E188C0E00276D0B /* Assets.xcassets */,
67+
34496A271E188C0E00276D0B /* MainMenu.xib */,
68+
34496A2A1E188C0E00276D0B /* Info.plist */,
69+
34496A221E188C0E00276D0B /* Supporting Files */,
70+
);
71+
path = Menu;
72+
sourceTree = "<group>";
73+
};
74+
34496A221E188C0E00276D0B /* Supporting Files */ = {
75+
isa = PBXGroup;
76+
children = (
77+
34D423351E18ECB5000E4154 /* libkrbn.h */,
78+
34496A231E188C0E00276D0B /* main.m */,
79+
);
80+
name = "Supporting Files";
81+
sourceTree = "<group>";
82+
};
83+
34D423361E18ECE5000E4154 /* Frameworks */ = {
84+
isa = PBXGroup;
85+
children = (
86+
34D423371E18ECE5000E4154 /* libc++.dylib */,
87+
34D423391E18ED79000E4154 /* libkrbn.a */,
88+
);
89+
name = Frameworks;
90+
sourceTree = "<group>";
91+
};
92+
/* End PBXGroup section */
93+
94+
/* Begin PBXNativeTarget section */
95+
34496A1B1E188C0E00276D0B /* Karabiner-Menu */ = {
96+
isa = PBXNativeTarget;
97+
buildConfigurationList = 34496A2D1E188C0E00276D0B /* Build configuration list for PBXNativeTarget "Karabiner-Menu" */;
98+
buildPhases = (
99+
34496A181E188C0E00276D0B /* Sources */,
100+
34496A191E188C0E00276D0B /* Frameworks */,
101+
34496A1A1E188C0E00276D0B /* Resources */,
102+
);
103+
buildRules = (
104+
);
105+
dependencies = (
106+
);
107+
name = "Karabiner-Menu";
108+
productName = Menu;
109+
productReference = 34496A1C1E188C0E00276D0B /* Karabiner-Menu.app */;
110+
productType = "com.apple.product-type.application";
111+
};
112+
/* End PBXNativeTarget section */
113+
114+
/* Begin PBXProject section */
115+
34496A141E188C0E00276D0B /* Project object */ = {
116+
isa = PBXProject;
117+
attributes = {
118+
LastUpgradeCheck = 0820;
119+
TargetAttributes = {
120+
34496A1B1E188C0E00276D0B = {
121+
CreatedOnToolsVersion = 8.2;
122+
ProvisioningStyle = Automatic;
123+
};
124+
};
125+
};
126+
buildConfigurationList = 34496A171E188C0E00276D0B /* Build configuration list for PBXProject "Karabiner-Menu" */;
127+
compatibilityVersion = "Xcode 6.3";
128+
developmentRegion = English;
129+
hasScannedForEncodings = 0;
130+
knownRegions = (
131+
en,
132+
Base,
133+
);
134+
mainGroup = 34496A131E188C0E00276D0B;
135+
productRefGroup = 34496A1D1E188C0E00276D0B /* Products */;
136+
projectDirPath = "";
137+
projectRoot = "";
138+
targets = (
139+
34496A1B1E188C0E00276D0B /* Karabiner-Menu */,
140+
);
141+
};
142+
/* End PBXProject section */
143+
144+
/* Begin PBXResourcesBuildPhase section */
145+
34496A1A1E188C0E00276D0B /* Resources */ = {
146+
isa = PBXResourcesBuildPhase;
147+
buildActionMask = 2147483647;
148+
files = (
149+
34496A261E188C0E00276D0B /* Assets.xcassets in Resources */,
150+
34496A291E188C0E00276D0B /* MainMenu.xib in Resources */,
151+
);
152+
runOnlyForDeploymentPostprocessing = 0;
153+
};
154+
/* End PBXResourcesBuildPhase section */
155+
156+
/* Begin PBXSourcesBuildPhase section */
157+
34496A181E188C0E00276D0B /* Sources */ = {
158+
isa = PBXSourcesBuildPhase;
159+
buildActionMask = 2147483647;
160+
files = (
161+
34496A241E188C0E00276D0B /* main.m in Sources */,
162+
34496A211E188C0E00276D0B /* AppDelegate.m in Sources */,
163+
);
164+
runOnlyForDeploymentPostprocessing = 0;
165+
};
166+
/* End PBXSourcesBuildPhase section */
167+
168+
/* Begin PBXVariantGroup section */
169+
34496A271E188C0E00276D0B /* MainMenu.xib */ = {
170+
isa = PBXVariantGroup;
171+
children = (
172+
34496A281E188C0E00276D0B /* Base */,
173+
);
174+
name = MainMenu.xib;
175+
sourceTree = "<group>";
176+
};
177+
/* End PBXVariantGroup section */
178+
179+
/* Begin XCBuildConfiguration section */
180+
34496A2C1E188C0E00276D0B /* Release */ = {
181+
isa = XCBuildConfiguration;
182+
buildSettings = {
183+
ALWAYS_SEARCH_USER_PATHS = NO;
184+
CLANG_ANALYZER_NONNULL = YES;
185+
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
186+
CLANG_CXX_LIBRARY = "libc++";
187+
CLANG_ENABLE_MODULES = YES;
188+
CLANG_ENABLE_OBJC_ARC = YES;
189+
CLANG_WARN_BOOL_CONVERSION = YES;
190+
CLANG_WARN_CONSTANT_CONVERSION = YES;
191+
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
192+
CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
193+
CLANG_WARN_EMPTY_BODY = YES;
194+
CLANG_WARN_ENUM_CONVERSION = YES;
195+
CLANG_WARN_INFINITE_RECURSION = YES;
196+
CLANG_WARN_INT_CONVERSION = YES;
197+
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
198+
CLANG_WARN_SUSPICIOUS_MOVE = YES;
199+
CLANG_WARN_UNREACHABLE_CODE = YES;
200+
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
201+
CODE_SIGN_IDENTITY = "-";
202+
COPY_PHASE_STRIP = NO;
203+
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
204+
ENABLE_NS_ASSERTIONS = NO;
205+
ENABLE_STRICT_OBJC_MSGSEND = YES;
206+
GCC_C_LANGUAGE_STANDARD = gnu99;
207+
GCC_NO_COMMON_BLOCKS = YES;
208+
GCC_TREAT_WARNINGS_AS_ERRORS = YES;
209+
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
210+
GCC_WARN_ABOUT_MISSING_NEWLINE = YES;
211+
GCC_WARN_ABOUT_MISSING_PROTOTYPES = YES;
212+
GCC_WARN_ABOUT_RETURN_TYPE = YES;
213+
GCC_WARN_CHECK_SWITCH_STATEMENTS = YES;
214+
GCC_WARN_MISSING_PARENTHESES = YES;
215+
GCC_WARN_NON_VIRTUAL_DESTRUCTOR = YES;
216+
GCC_WARN_SHADOW = YES;
217+
GCC_WARN_SIGN_COMPARE = YES;
218+
GCC_WARN_UNDECLARED_SELECTOR = YES;
219+
GCC_WARN_UNINITIALIZED_AUTOS = YES;
220+
GCC_WARN_UNUSED_FUNCTION = YES;
221+
GCC_WARN_UNUSED_LABEL = YES;
222+
GCC_WARN_UNUSED_VALUE = YES;
223+
GCC_WARN_UNUSED_VARIABLE = YES;
224+
LIBRARY_SEARCH_PATHS = ../lib/libkrbn/build/Release;
225+
MACOSX_DEPLOYMENT_TARGET = 10.11;
226+
MTL_ENABLE_DEBUG_INFO = NO;
227+
RUN_CLANG_STATIC_ANALYZER = YES;
228+
SDKROOT = macosx;
229+
};
230+
name = Release;
231+
};
232+
34496A2F1E188C0E00276D0B /* Release */ = {
233+
isa = XCBuildConfiguration;
234+
buildSettings = {
235+
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
236+
COMBINE_HIDPI_IMAGES = YES;
237+
INFOPLIST_FILE = Menu/Info.plist;
238+
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks";
239+
PRODUCT_BUNDLE_IDENTIFIER = "org.pqrs.Karabiner-Menu";
240+
PRODUCT_NAME = "$(TARGET_NAME)";
241+
};
242+
name = Release;
243+
};
244+
/* End XCBuildConfiguration section */
245+
246+
/* Begin XCConfigurationList section */
247+
34496A171E188C0E00276D0B /* Build configuration list for PBXProject "Karabiner-Menu" */ = {
248+
isa = XCConfigurationList;
249+
buildConfigurations = (
250+
34496A2C1E188C0E00276D0B /* Release */,
251+
);
252+
defaultConfigurationIsVisible = 0;
253+
defaultConfigurationName = Release;
254+
};
255+
34496A2D1E188C0E00276D0B /* Build configuration list for PBXNativeTarget "Karabiner-Menu" */ = {
256+
isa = XCConfigurationList;
257+
buildConfigurations = (
258+
34496A2F1E188C0E00276D0B /* Release */,
259+
);
260+
defaultConfigurationIsVisible = 0;
261+
defaultConfigurationName = Release;
262+
};
263+
/* End XCConfigurationList section */
264+
};
265+
rootObject = 34496A141E188C0E00276D0B /* Project object */;
266+
}

src/apps/Menu/Karabiner-Menu.xcodeproj/project.xcworkspace/contents.xcworkspacedata

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/apps/Menu/Makefile

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
#CONFIGURATION = Debug
2+
CONFIGURATION = Release
3+
4+
all:
5+
../../../scripts/setversion.sh
6+
make -C ../lib/libkrbn
7+
xcodebuild -alltargets -configuration $(CONFIGURATION) build
8+
9+
clean:
10+
rm -rf build
11+
rm -f *.xcodeproj/*.mode1
12+
rm -f *.xcodeproj/*.mode1v3
13+
rm -f *.xcodeproj/*.pbxuser
14+
rm -rf *.xcodeproj/xcuserdata
15+
rm -rf *.xcodeproj/project.xcworkspace/xcuserdata
16+
17+
xcode:
18+
open *.xcodeproj
19+
20+
run:
21+
./build/Release/Karabiner-Menu.app/Contents/MacOS/Karabiner-Menu

src/apps/Menu/Menu/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/Info.plist

src/apps/Menu/Menu/AppDelegate.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
// -*- Mode: objc; Coding: utf-8; indent-tabs-mode: nil; -*-
2+
3+
@import Cocoa;
4+
5+
@interface AppDelegate : NSObject <NSApplicationDelegate>
6+
7+
@end

src/apps/Menu/Menu/AppDelegate.m

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#import "AppDelegate.h"
2+
3+
@interface AppDelegate ()
4+
@end
5+
6+
@implementation AppDelegate
7+
8+
- (void)applicationDidFinishLaunching:(NSNotification*)aNotification {
9+
}
10+
11+
@end
Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
{
2+
"images" : [
3+
{
4+
"idiom" : "mac",
5+
"size" : "16x16",
6+
"scale" : "1x"
7+
},
8+
{
9+
"idiom" : "mac",
10+
"size" : "16x16",
11+
"scale" : "2x"
12+
},
13+
{
14+
"idiom" : "mac",
15+
"size" : "32x32",
16+
"scale" : "1x"
17+
},
18+
{
19+
"idiom" : "mac",
20+
"size" : "32x32",
21+
"scale" : "2x"
22+
},
23+
{
24+
"idiom" : "mac",
25+
"size" : "128x128",
26+
"scale" : "1x"
27+
},
28+
{
29+
"idiom" : "mac",
30+
"size" : "128x128",
31+
"scale" : "2x"
32+
},
33+
{
34+
"idiom" : "mac",
35+
"size" : "256x256",
36+
"scale" : "1x"
37+
},
38+
{
39+
"idiom" : "mac",
40+
"size" : "256x256",
41+
"scale" : "2x"
42+
},
43+
{
44+
"idiom" : "mac",
45+
"size" : "512x512",
46+
"scale" : "1x"
47+
},
48+
{
49+
"idiom" : "mac",
50+
"size" : "512x512",
51+
"scale" : "2x"
52+
}
53+
],
54+
"info" : {
55+
"version" : 1,
56+
"author" : "xcode"
57+
}
58+
}
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2+
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="11762" systemVersion="15G1212" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES" customObjectInstantitationMethod="direct">
3+
<dependencies>
4+
<deployment identifier="macosx"/>
5+
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="11762"/>
6+
</dependencies>
7+
<objects>
8+
<customObject id="-2" userLabel="File's Owner" customClass="NSApplication">
9+
<connections>
10+
<outlet property="delegate" destination="Voe-Tx-rLC" id="GzC-gU-4Uq"/>
11+
</connections>
12+
</customObject>
13+
<customObject id="-1" userLabel="First Responder" customClass="FirstResponder"/>
14+
<customObject id="-3" userLabel="Application" customClass="NSObject"/>
15+
<customObject id="Voe-Tx-rLC" customClass="AppDelegate"/>
16+
</objects>
17+
</document>

0 commit comments

Comments
 (0)