Mercurial > dwindows
annotate dwindows-config1.in @ 2048:2d06f48e9d12
Win: Imported some changes from the dark mode example app I've been following.
I was hoping to find some new APIs that would improve the dark mode implementation...
These updates utilize new APIs for setting the dark titlebar, but does not seem
to improve the dark mode appearance at all.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Sat, 30 Nov 2019 10:43:55 +0000 |
parents | 2675e0edcc1d |
children | c677d728e143 |
rev | line source |
---|---|
1611
2675e0edcc1d
First attempt at fixing dwindows-config --version after the build
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1 #!/bin/sh |
2675e0edcc1d
First attempt at fixing dwindows-config --version after the build
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2 |
2675e0edcc1d
First attempt at fixing dwindows-config --version after the build
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
3 dw_libs="@LIBS@" |
2675e0edcc1d
First attempt at fixing dwindows-config --version after the build
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
4 dw_cflags="@CFLAGS@ -D@DW_DEFINE@" |
2675e0edcc1d
First attempt at fixing dwindows-config --version after the build
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
5 |
2675e0edcc1d
First attempt at fixing dwindows-config --version after the build
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
6 prefix=@prefix@ |
2675e0edcc1d
First attempt at fixing dwindows-config --version after the build
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
7 exec_prefix=@exec_prefix@ |
2675e0edcc1d
First attempt at fixing dwindows-config --version after the build
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
8 exec_prefix_set=no |
2675e0edcc1d
First attempt at fixing dwindows-config --version after the build
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
9 |
2675e0edcc1d
First attempt at fixing dwindows-config --version after the build
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
10 usage() |
2675e0edcc1d
First attempt at fixing dwindows-config --version after the build
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
11 { |
2675e0edcc1d
First attempt at fixing dwindows-config --version after the build
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
12 cat <<EOF |
2675e0edcc1d
First attempt at fixing dwindows-config --version after the build
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
13 Usage: dwindows-config [OPTIONS] |
2675e0edcc1d
First attempt at fixing dwindows-config --version after the build
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
14 Options: |
2675e0edcc1d
First attempt at fixing dwindows-config --version after the build
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
15 [--prefix[=DIR]] |
2675e0edcc1d
First attempt at fixing dwindows-config --version after the build
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
16 [--exec-prefix[=DIR]] |
2675e0edcc1d
First attempt at fixing dwindows-config --version after the build
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
17 [--version] |
2675e0edcc1d
First attempt at fixing dwindows-config --version after the build
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
18 [--libs] |
2675e0edcc1d
First attempt at fixing dwindows-config --version after the build
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
19 [--cflags] |
2675e0edcc1d
First attempt at fixing dwindows-config --version after the build
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
20 EOF |
2675e0edcc1d
First attempt at fixing dwindows-config --version after the build
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
21 exit $1 |
2675e0edcc1d
First attempt at fixing dwindows-config --version after the build
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
22 } |
2675e0edcc1d
First attempt at fixing dwindows-config --version after the build
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
23 |
2675e0edcc1d
First attempt at fixing dwindows-config --version after the build
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
24 if test $# -eq 0; then |
2675e0edcc1d
First attempt at fixing dwindows-config --version after the build
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
25 usage 1 1>&2 |
2675e0edcc1d
First attempt at fixing dwindows-config --version after the build
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
26 fi |
2675e0edcc1d
First attempt at fixing dwindows-config --version after the build
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
27 |
2675e0edcc1d
First attempt at fixing dwindows-config --version after the build
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
28 while test $# -gt 0; do |
2675e0edcc1d
First attempt at fixing dwindows-config --version after the build
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
29 case "$1" in |
2675e0edcc1d
First attempt at fixing dwindows-config --version after the build
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
30 -*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;; |
2675e0edcc1d
First attempt at fixing dwindows-config --version after the build
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
31 *) optarg= ;; |
2675e0edcc1d
First attempt at fixing dwindows-config --version after the build
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
32 esac |
2675e0edcc1d
First attempt at fixing dwindows-config --version after the build
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
33 |
2675e0edcc1d
First attempt at fixing dwindows-config --version after the build
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
34 case $1 in |
2675e0edcc1d
First attempt at fixing dwindows-config --version after the build
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
35 --prefix=*) |
2675e0edcc1d
First attempt at fixing dwindows-config --version after the build
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
36 prefix=$optarg |
2675e0edcc1d
First attempt at fixing dwindows-config --version after the build
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
37 if test $exec_prefix_set = no ; then |
2675e0edcc1d
First attempt at fixing dwindows-config --version after the build
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
38 exec_prefix=$optarg |
2675e0edcc1d
First attempt at fixing dwindows-config --version after the build
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
39 fi |
2675e0edcc1d
First attempt at fixing dwindows-config --version after the build
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
40 ;; |
2675e0edcc1d
First attempt at fixing dwindows-config --version after the build
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
41 --prefix) |
2675e0edcc1d
First attempt at fixing dwindows-config --version after the build
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
42 echo_prefix=yes |
2675e0edcc1d
First attempt at fixing dwindows-config --version after the build
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
43 ;; |
2675e0edcc1d
First attempt at fixing dwindows-config --version after the build
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
44 --exec-prefix=*) |
2675e0edcc1d
First attempt at fixing dwindows-config --version after the build
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
45 exec_prefix=$optarg |
2675e0edcc1d
First attempt at fixing dwindows-config --version after the build
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
46 exec_prefix_set=yes |
2675e0edcc1d
First attempt at fixing dwindows-config --version after the build
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
47 ;; |
2675e0edcc1d
First attempt at fixing dwindows-config --version after the build
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
48 --version) |
2675e0edcc1d
First attempt at fixing dwindows-config --version after the build
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
49 echo @DW_MAJOR_VERSION@.@DW_MINOR_VERSION@.@DW_SUB_VERSION@ |
2675e0edcc1d
First attempt at fixing dwindows-config --version after the build
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
50 ;; |
2675e0edcc1d
First attempt at fixing dwindows-config --version after the build
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
51 --cflags) |
2675e0edcc1d
First attempt at fixing dwindows-config --version after the build
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
52 echo_cflags=yes |
2675e0edcc1d
First attempt at fixing dwindows-config --version after the build
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
53 ;; |
2675e0edcc1d
First attempt at fixing dwindows-config --version after the build
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
54 --libs) |
2675e0edcc1d
First attempt at fixing dwindows-config --version after the build
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
55 echo_libs=yes |
2675e0edcc1d
First attempt at fixing dwindows-config --version after the build
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
56 ;; |
2675e0edcc1d
First attempt at fixing dwindows-config --version after the build
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
57 *) |
2675e0edcc1d
First attempt at fixing dwindows-config --version after the build
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
58 usage 1 1>&2 |
2675e0edcc1d
First attempt at fixing dwindows-config --version after the build
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
59 ;; |
2675e0edcc1d
First attempt at fixing dwindows-config --version after the build
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
60 esac |
2675e0edcc1d
First attempt at fixing dwindows-config --version after the build
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
61 shift |
2675e0edcc1d
First attempt at fixing dwindows-config --version after the build
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
62 done |
2675e0edcc1d
First attempt at fixing dwindows-config --version after the build
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
63 |
2675e0edcc1d
First attempt at fixing dwindows-config --version after the build
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
64 if test "$echo_prefix" = "yes"; then |
2675e0edcc1d
First attempt at fixing dwindows-config --version after the build
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
65 echo $prefix |
2675e0edcc1d
First attempt at fixing dwindows-config --version after the build
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
66 fi |
2675e0edcc1d
First attempt at fixing dwindows-config --version after the build
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
67 |
2675e0edcc1d
First attempt at fixing dwindows-config --version after the build
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
68 if test "$echo_exec_prefix" = "yes"; then |
2675e0edcc1d
First attempt at fixing dwindows-config --version after the build
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
69 echo $exec_prefix |
2675e0edcc1d
First attempt at fixing dwindows-config --version after the build
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
70 fi |
2675e0edcc1d
First attempt at fixing dwindows-config --version after the build
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
71 |
2675e0edcc1d
First attempt at fixing dwindows-config --version after the build
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
72 if test "$echo_cflags" = "yes"; then |
2675e0edcc1d
First attempt at fixing dwindows-config --version after the build
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
73 echo -I${prefix}/include $dw_cflags |
2675e0edcc1d
First attempt at fixing dwindows-config --version after the build
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
74 fi |
2675e0edcc1d
First attempt at fixing dwindows-config --version after the build
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
75 |
2675e0edcc1d
First attempt at fixing dwindows-config --version after the build
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
76 if test "$echo_libs" = "yes"; then |
2675e0edcc1d
First attempt at fixing dwindows-config --version after the build
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
77 echo -L${prefix}/lib -ldwindows $dw_libs |
2675e0edcc1d
First attempt at fixing dwindows-config --version after the build
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
78 fi |
2675e0edcc1d
First attempt at fixing dwindows-config --version after the build
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
79 |