[ACPICA] Update to version 20171215. CORE-15222
[reactos.git] / drivers / bus / acpi / CMakeLists.txt
1
2 include_directories(
3 include
4 acpica/include)
5
6 if(ARCH STREQUAL "amd64")
7 add_definitions(-DWIN64)
8 endif()
9
10 list(APPEND ACPICA_SOURCE
11 acpica/dispatcher/dsargs.c
12 acpica/dispatcher/dscontrol.c
13 acpica/dispatcher/dsdebug.c
14 acpica/dispatcher/dsfield.c
15 acpica/dispatcher/dsinit.c
16 acpica/dispatcher/dsmethod.c
17 acpica/dispatcher/dsmthdat.c
18 acpica/dispatcher/dsobject.c
19 acpica/dispatcher/dsopcode.c
20 acpica/dispatcher/dspkginit.c
21 acpica/dispatcher/dsutils.c
22 acpica/dispatcher/dswexec.c
23 acpica/dispatcher/dswload.c
24 acpica/dispatcher/dswload2.c
25 acpica/dispatcher/dswscope.c
26 acpica/dispatcher/dswstate.c
27 acpica/events/evevent.c
28 acpica/events/evglock.c
29 acpica/events/evgpe.c
30 acpica/events/evgpeblk.c
31 acpica/events/evgpeinit.c
32 acpica/events/evgpeutil.c
33 acpica/events/evhandler.c
34 acpica/events/evmisc.c
35 acpica/events/evregion.c
36 acpica/events/evrgnini.c
37 acpica/events/evsci.c
38 acpica/events/evxface.c
39 acpica/events/evxfevnt.c
40 acpica/events/evxfgpe.c
41 acpica/events/evxfregn.c
42 acpica/executer/exconcat.c
43 acpica/executer/exconfig.c
44 acpica/executer/exconvrt.c
45 acpica/executer/excreate.c
46 acpica/executer/exdebug.c
47 # acpica/executer/exdump.c
48 acpica/executer/exfield.c
49 acpica/executer/exfldio.c
50 acpica/executer/exmisc.c
51 acpica/executer/exmutex.c
52 acpica/executer/exnames.c
53 acpica/executer/exoparg1.c
54 acpica/executer/exoparg2.c
55 acpica/executer/exoparg3.c
56 acpica/executer/exoparg6.c
57 acpica/executer/exprep.c
58 acpica/executer/exregion.c
59 acpica/executer/exresnte.c
60 acpica/executer/exresolv.c
61 acpica/executer/exresop.c
62 acpica/executer/exstore.c
63 acpica/executer/exstoren.c
64 acpica/executer/exstorob.c
65 acpica/executer/exsystem.c
66 acpica/executer/extrace.c
67 acpica/executer/exutils.c
68 acpica/hardware/hwacpi.c
69 acpica/hardware/hwesleep.c
70 acpica/hardware/hwgpe.c
71 acpica/hardware/hwpci.c
72 acpica/hardware/hwregs.c
73 acpica/hardware/hwsleep.c
74 acpica/hardware/hwtimer.c
75 acpica/hardware/hwvalid.c
76 acpica/hardware/hwxface.c
77 acpica/hardware/hwxfsleep.c
78 acpica/namespace/nsaccess.c
79 acpica/namespace/nsalloc.c
80 acpica/namespace/nsarguments.c
81 acpica/namespace/nsconvert.c
82 # acpica/namespace/nsdump.c
83 # acpica/namespace/nsdumpdv.c
84 acpica/namespace/nseval.c
85 acpica/namespace/nsinit.c
86 acpica/namespace/nsload.c
87 acpica/namespace/nsnames.c
88 acpica/namespace/nsobject.c
89 acpica/namespace/nsparse.c
90 acpica/namespace/nspredef.c
91 acpica/namespace/nsprepkg.c
92 acpica/namespace/nsrepair.c
93 acpica/namespace/nsrepair2.c
94 acpica/namespace/nssearch.c
95 acpica/namespace/nsutils.c
96 acpica/namespace/nswalk.c
97 acpica/namespace/nsxfeval.c
98 acpica/namespace/nsxfname.c
99 acpica/namespace/nsxfobj.c
100 acpica/parser/psargs.c
101 acpica/parser/psloop.c
102 acpica/parser/psobject.c
103 acpica/parser/psopcode.c
104 acpica/parser/psopinfo.c
105 acpica/parser/psparse.c
106 acpica/parser/psscope.c
107 acpica/parser/pstree.c
108 acpica/parser/psutils.c
109 acpica/parser/pswalk.c
110 acpica/parser/psxface.c
111 acpica/resources/rsaddr.c
112 acpica/resources/rscalc.c
113 acpica/resources/rscreate.c
114 # acpica/resources/rsdump.c
115 # acpica/resources/rsdumpinfo.c
116 acpica/resources/rsinfo.c
117 acpica/resources/rsio.c
118 acpica/resources/rsirq.c
119 acpica/resources/rslist.c
120 acpica/resources/rsmemory.c
121 acpica/resources/rsmisc.c
122 acpica/resources/rsserial.c
123 acpica/resources/rsutils.c
124 acpica/resources/rsxface.c
125 acpica/tables/tbdata.c
126 acpica/tables/tbfadt.c
127 acpica/tables/tbfind.c
128 acpica/tables/tbinstal.c
129 acpica/tables/tbprint.c
130 acpica/tables/tbutils.c
131 acpica/tables/tbxface.c
132 acpica/tables/tbxfload.c
133 acpica/tables/tbxfroot.c
134 acpica/utilities/utaddress.c
135 acpica/utilities/utalloc.c
136 acpica/utilities/utascii.c
137 acpica/utilities/utbuffer.c
138 acpica/utilities/utcache.c
139 # acpica/utilities/utclib.c
140 acpica/utilities/utcopy.c
141 # acpica/utilities/utdebug.c
142 acpica/utilities/utdecode.c
143 acpica/utilities/utdelete.c
144 acpica/utilities/uterror.c
145 acpica/utilities/uteval.c
146 # acpica/utilities/utfileio.c
147 acpica/utilities/uthex.c
148 acpica/utilities/utids.c
149 acpica/utilities/utinit.c
150 acpica/utilities/utlock.c
151 acpica/utilities/utmath.c
152 acpica/utilities/utmisc.c
153 acpica/utilities/utmutex.c
154 acpica/utilities/utnonansi.c
155 acpica/utilities/utobject.c
156 acpica/utilities/utosi.c
157 acpica/utilities/utownerid.c
158 acpica/utilities/utpredef.c
159 # acpica/utilities/utprint.c
160 # acpica/utilities/utresdecode.c
161 acpica/utilities/utresrc.c
162 acpica/utilities/utstate.c
163 acpica/utilities/utstring.c
164 acpica/utilities/utstrtoul64.c
165 acpica/utilities/utstrsuppt.c
166 # acpica/utilities/utuuid.c
167 acpica/utilities/uttrack.c
168 acpica/utilities/utxface.c
169 acpica/utilities/utxferror.c
170 acpica/utilities/utxfinit.c
171 acpica/utilities/utxfmutex.c
172 acpica/include/acpi.h)
173
174 add_library(acpica
175 ${ACPICA_SOURCE}
176 acpica/utilities/utexcep.c
177 acpica/utilities/utglobal.c)
178
179 add_pch(acpica acpica/include/acpi.h ACPICA_SOURCE)
180 set_target_properties(acpica PROPERTIES COMPILE_DEFINITIONS "ACPI_USE_LOCAL_CACHE;ACPI_USE_SYSTEM_INTTYPES")
181 add_dependencies(acpica bugcodes xdk)
182
183 list(APPEND ACPI_SOURCE
184 busmgr/bus.c
185 busmgr/button.c
186 busmgr/power.c
187 busmgr/utils.c
188 busmgr/system.c
189 osl.c
190 acpienum.c
191 eval.c
192 interface.c
193 pnp.c
194 power.c
195 buspdo.c
196 main.c
197 precomp.h)
198
199 add_library(acpi SHARED ${ACPI_SOURCE})
200 set_module_type(acpi kernelmodedriver)
201 target_link_libraries(acpi wdmguid acpica memcmp strtol ${PSEH_LIB})
202 add_importlibs(acpi ntoskrnl hal)
203 add_pch(acpi precomp.h ACPI_SOURCE)
204 add_cd_file(TARGET acpi DESTINATION reactos/system32/drivers NO_CAB FOR all)
205
206 add_subdirectory(cmbatt)
207 add_subdirectory(compbatt)