File tree Expand file tree Collapse file tree 2 files changed +14
-7
lines changed Expand file tree Collapse file tree 2 files changed +14
-7
lines changed Original file line number Diff line number Diff line change 27
27
@osx_only begin
28
28
using Homebrew
29
29
provides (Homebrew. HB, " gtk+3" , gtk, os = :Darwin )
30
-
31
- # Append to XDG_DATA_DIRS to get us the proper paths setup for glib schemas
32
- if " XDG_DATA_DIRS" in ENV
33
- ENV [" XDG_DATA_DIRS" ] *= " :" * joinpath (Homebrew. brew_prefix, " share" )
34
- else
35
- ENV [" XDG_DATA_DIRS" ] = joinpath (Homebrew. brew_prefix, " share" )
36
- end
37
30
end
38
31
39
32
if OS_NAME == :Windows
Original file line number Diff line number Diff line change 11
11
const libglib = " libglib-2.0"
12
12
end
13
13
end
14
+
15
+ @osx_only begin
16
+ if Pkg. installed (" Homebrew" ) != nothing
17
+ using Homebrew
18
+ if Homebrew. installed (" gtk+3" )
19
+ # Append to XDG_DATA_DIRS to get us the proper paths setup for glib schemas
20
+ if " XDG_DATA_DIRS" in ENV
21
+ ENV [" XDG_DATA_DIRS" ] *= " :" * joinpath (Homebrew. brew_prefix, " share" )
22
+ else
23
+ ENV [" XDG_DATA_DIRS" ] = joinpath (Homebrew. brew_prefix, " share" )
24
+ end
25
+ end
26
+ end
27
+ end
You can’t perform that action at this time.
0 commit comments