[CMAKE]
[reactos.git] / drivers / bus / acpi / CMakeLists.txt
1
2 set(CMAKE_C_CREATE_SHARED_LIBRARY "<CMAKE_C_COMPILER> <CMAKE_SHARED_LIBRARY_C_FLAGS> <LINK_FLAGS> <CMAKE_SHARED_LIBRARY_CREATE_C_FLAGS> -o <TARGET> <OBJECTS> <LINK_LIBRARIES>")
3
4 include_directories(include)
5 include_directories(acpica/include)
6
7 add_library(acpica
8 acpica/dispatcher/dsfield.c
9 acpica/dispatcher/dsinit.c
10 acpica/dispatcher/dsmethod.c
11 acpica/dispatcher/dsmthdat.c
12 acpica/dispatcher/dsobject.c
13 acpica/dispatcher/dsopcode.c
14 acpica/dispatcher/dsutils.c
15 acpica/dispatcher/dswexec.c
16 acpica/dispatcher/dswload.c
17 acpica/dispatcher/dswscope.c
18 acpica/dispatcher/dswstate.c
19 acpica/events/evevent.c
20 acpica/events/evgpe.c
21 acpica/events/evgpeblk.c
22 acpica/events/evmisc.c
23 acpica/events/evregion.c
24 acpica/events/evrgnini.c
25 acpica/events/evsci.c
26 acpica/events/evxface.c
27 acpica/events/evxfevnt.c
28 acpica/events/evxfregn.c
29 acpica/executer/exconfig.c
30 acpica/executer/exconvrt.c
31 acpica/executer/excreate.c
32 acpica/executer/exdump.c
33 acpica/executer/exfield.c
34 acpica/executer/exfldio.c
35 acpica/executer/exmisc.c
36 acpica/executer/exmutex.c
37 acpica/executer/exoparg1.c
38 acpica/executer/exoparg2.c
39 acpica/executer/exoparg3.c
40 acpica/executer/exoparg6.c
41 acpica/executer/exnames.c
42 acpica/executer/exprep.c
43 acpica/executer/exregion.c
44 acpica/executer/exresnte.c
45 acpica/executer/exresolv.c
46 acpica/executer/exresop.c
47 acpica/executer/exstore.c
48 acpica/executer/exstoren.c
49 acpica/executer/exstorob.c
50 acpica/executer/exsystem.c
51 acpica/executer/exutils.c
52 acpica/hardware/hwacpi.c
53 acpica/hardware/hwgpe.c
54 acpica/hardware/hwregs.c
55 acpica/hardware/hwsleep.c
56 acpica/hardware/hwtimer.c
57 acpica/hardware/hwvalid.c
58 acpica/hardware/hwxface.c
59 acpica/namespace/nsaccess.c
60 acpica/namespace/nsalloc.c
61 acpica/namespace/nsdump.c
62 acpica/namespace/nsdumpdv.c
63 acpica/namespace/nseval.c
64 acpica/namespace/nsinit.c
65 acpica/namespace/nsload.c
66 acpica/namespace/nsnames.c
67 acpica/namespace/nsobject.c
68 acpica/namespace/nsparse.c
69 acpica/namespace/nspredef.c
70 acpica/namespace/nsrepair.c
71 acpica/namespace/nsrepair2.c
72 acpica/namespace/nssearch.c
73 acpica/namespace/nsutils.c
74 acpica/namespace/nswalk.c
75 acpica/namespace/nsxfeval.c
76 acpica/namespace/nsxfname.c
77 acpica/namespace/nsxfobj.c
78 acpica/parser/psargs.c
79 acpica/parser/psloop.c
80 acpica/parser/psopcode.c
81 acpica/parser/psparse.c
82 acpica/parser/psscope.c
83 acpica/parser/pstree.c
84 acpica/parser/psutils.c
85 acpica/parser/pswalk.c
86 acpica/parser/psxface.c
87 acpica/resources/rsaddr.c
88 acpica/resources/rscalc.c
89 acpica/resources/rscreate.c
90 acpica/resources/rsdump.c
91 acpica/resources/rsinfo.c
92 acpica/resources/rsio.c
93 acpica/resources/rsirq.c
94 acpica/resources/rslist.c
95 acpica/resources/rsmemory.c
96 acpica/resources/rsmisc.c
97 acpica/resources/rsutils.c
98 acpica/resources/rsxface.c
99 acpica/tables/tbfadt.c
100 acpica/tables/tbfind.c
101 acpica/tables/tbinstal.c
102 acpica/tables/tbutils.c
103 acpica/tables/tbxface.c
104 acpica/tables/tbxfroot.c
105 acpica/utilities/utalloc.c
106 acpica/utilities/utcache.c
107 acpica/utilities/utclib.c
108 acpica/utilities/utcopy.c
109 acpica/utilities/utdebug.c
110 acpica/utilities/utdelete.c
111 acpica/utilities/uteval.c
112 acpica/utilities/utglobal.c
113 acpica/utilities/utids.c
114 acpica/utilities/utinit.c
115 acpica/utilities/utlock.c
116 acpica/utilities/utmath.c
117 acpica/utilities/utmisc.c
118 acpica/utilities/utmutex.c
119 acpica/utilities/utobject.c
120 acpica/utilities/utresrc.c
121 acpica/utilities/utstate.c
122 acpica/utilities/uttrack.c
123 acpica/utilities/utxface.c)
124
125 set_target_properties(acpica PROPERTIES COMPILE_DEFINITIONS "ACPI_USE_LOCAL_CACHE")
126
127 spec2def(acpi ${CMAKE_CURRENT_SOURCE_DIR}/acpi.spec ${CMAKE_CURRENT_BINARY_DIR}/acpi.def)
128
129 add_library(acpi SHARED
130 busmgr/bus.c
131 busmgr/button.c
132 busmgr/power.c
133 busmgr/utils.c
134 busmgr/system.c
135 osl.c
136 acpienum.c
137 eval.c
138 interface.c
139 pnp.c
140 power.c
141 buspdo.c
142 main.c)
143
144 set_target_properties(acpi PROPERTIES LINK_FLAGS "-Wl,-entry,_DriverEntry@8 -Wl,--image-base,0x00010000 -Wl,--exclude-all-symbols -Wl,--subsystem,native" SUFFIX ".sys")
145
146 target_link_libraries(acpi
147 wdmguid
148 acpica
149 ${REACTOS_SOURCE_DIR}/ntoskrnl/libntoskrnl.a
150 ${REACTOS_SOURCE_DIR}/hal/halx86/libhal.a)
151
152 add_dependencies(acpi psdk bugcodes)