Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 17 additions & 17 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
APP=Install_airyxOS
SRCS=Source/main.m Source/AppDelegate.m Source/GSGeomDisk.m
MK_DEBUG_FILES=no
RESOURCES=TanukiLogo.tiff header.rtf terms.rtf English.lproj Icon.png
SLF=/System/Library/Frameworks
FRAMEWORKS=${SLF}/AppKit ${SLF}/CoreGraphics ${SLF}/Onyx2D ${SLF}/OpenGL \
${SLF}/Foundation ${SLF}/CoreFoundation ${SLF}/DBusKit
LDFLAGS+=-lGL
AIRYX_VERSION!= head -1 ../../version.txt
CFLAGS+=-g -DAIRYX_VERSION=\"${AIRYX_VERSION}\"
APP= Filer
SRCS= filer-cocoa/FilemanDelegate.m \
filer-cocoa/AppDelegate.m \
filer-cocoa/AppController.m \
filer-cocoa/PrefDelegate.m \
filer-cocoa/main.m \
filer-cocoa/FileSystemNode.m \
filer-cocoa/FileSystemBrowserCell.m \
filer-cocoa/PreviewViewController.m
MK_DEBUG_FILES= no
RESOURCES=
CFLAGS+= -fobjc-arc -g -O2 -framework AppKit -framework Foundation
LDFLAGS+= -framework AppKit -framework Foundation -lobjc -lSystem

clean:
rm -rf ${APP_DIR} "${APP_DIR:S/_/ /}"
rm -f Source/*.o
rm -rf ${APP_DIR}

build: clean all
rm -f ${APP_DIR}/${APP}
ln -sf "Contents/Airyx/${APP:S/_/ /}" "${APP_DIR}/${APP:S/_/ /}"
mv -f ${APP_DIR}/Contents/Airyx/${APP} "${APP_DIR}/Contents/Airyx/${APP:S/_/ /}"
mv -f ${APP_DIR} "${APP_DIR:S/_/ /}"
mkdir -p ${APP_DIR}/Contents/Resources/English.lproj
cp -fv NIB/*.nib ${APP_DIR}/Contents/Resources/English.lproj/

.include <airyx.app.mk>
.include <rvn.app.mk>
5 changes: 5 additions & 0 deletions filer-cocoa/AppController.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,12 @@
Application Controller object, and the NSBrowser delegate. An instance of this object is in the MainMenu.xib.
*/

#if __APPLE__
@import Cocoa;
#endif
#if __RAVYNOS__
#import <Cocoa/Cocoa.h>
#endif

@interface AppController : NSObject

Expand Down
5 changes: 5 additions & 0 deletions filer-cocoa/FileSystemBrowserCell.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,12 @@
A cell that can draw an image/icon and a label color.
*/

#if __APPLE__
@import Cocoa;
#endif
#if __RAVYNOS__
#import <Cocoa/Cocoa.h>
#endif

@interface FileSystemBrowserCell : NSTextFieldCell

Expand Down
5 changes: 5 additions & 0 deletions filer-cocoa/FileSystemNode.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,12 @@
An abstract wrapper node around the file system.
*/

#if __APPLE__
@import Cocoa;
#endif
#if __RAVYNOS__
#import <Cocoa/Cocoa.h>
#endif

// This is a simple wrapper around the file system. Its main purpose is to cache children.
@interface FileSystemNode : NSObject
Expand Down
5 changes: 5 additions & 0 deletions filer-cocoa/PreviewViewController.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,12 @@
View Controller subclass used for our preview pane in NSBrowser.
*/

#if __APPLE__
@import Cocoa;
#endif
#if __RAVYNOS__
#import <Cocoa/Cocoa.h>
#endif

@interface PreviewViewController : NSViewController

Expand Down