Skip to content

Commit

Permalink
refactor: update flag directives
Browse files Browse the repository at this point in the history
  • Loading branch information
ttytm committed May 17, 2024
1 parent 85aa26e commit b7e4c26
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions src/_common.c.v
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,16 @@ module dialog
#flag @VMODROOT/src/osdialog/osdialog.c
#flag darwin @VMODROOT/src/osdialog/osdialog_mac.m -framework AppKit
#flag windows @VMODROOT/src/osdialog/osdialog_win.c -lcomdlg32
$if gtk2 ? {
#flag linux @VMODROOT/src/osdialog/osdialog_gtk2.c
} $else {
#flag linux @VMODROOT/src/osdialog/osdialog_gtk3.c
#flag linux @VMODROOT/src/osdialog/osdialog_gtk2.c
$if linux {
$if !gtk2 ? {
#flag -DOSDIALOG_GTK3
}
#pkgconfig gtk+-3.0
}

#include "@VMODROOT/src/osdialog/osdialog.h"

$if macos {
#include <AppKit/AppKit.h>
} $else $if linux {
#pkgconfig gtk+-3.0
}

@[typedef]
struct C.osdialog_color {
r u8
Expand Down

0 comments on commit b7e4c26

Please sign in to comment.