xref: /reactos/drivers/bus/acpi/CMakeLists.txt (revision 0c2cdcae)
1
2include_directories(
3    include
4    acpica/include)
5
6if(ARCH STREQUAL "amd64")
7    add_definitions(-DWIN64)
8endif()
9
10list(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/exserial.c
63    acpica/executer/exstore.c
64    acpica/executer/exstoren.c
65    acpica/executer/exstorob.c
66    acpica/executer/exsystem.c
67    acpica/executer/extrace.c
68    acpica/executer/exutils.c
69    acpica/hardware/hwacpi.c
70    acpica/hardware/hwesleep.c
71    acpica/hardware/hwgpe.c
72    acpica/hardware/hwpci.c
73    acpica/hardware/hwregs.c
74    acpica/hardware/hwsleep.c
75    acpica/hardware/hwtimer.c
76    acpica/hardware/hwvalid.c
77    acpica/hardware/hwxface.c
78    acpica/hardware/hwxfsleep.c
79    acpica/namespace/nsaccess.c
80    acpica/namespace/nsalloc.c
81    acpica/namespace/nsarguments.c
82    acpica/namespace/nsconvert.c
83    # acpica/namespace/nsdump.c
84    # acpica/namespace/nsdumpdv.c
85    acpica/namespace/nseval.c
86    acpica/namespace/nsinit.c
87    acpica/namespace/nsload.c
88    acpica/namespace/nsnames.c
89    acpica/namespace/nsobject.c
90    acpica/namespace/nsparse.c
91    acpica/namespace/nspredef.c
92    acpica/namespace/nsprepkg.c
93    acpica/namespace/nsrepair.c
94    acpica/namespace/nsrepair2.c
95    acpica/namespace/nssearch.c
96    acpica/namespace/nsutils.c
97    acpica/namespace/nswalk.c
98    acpica/namespace/nsxfeval.c
99    acpica/namespace/nsxfname.c
100    acpica/namespace/nsxfobj.c
101    acpica/parser/psargs.c
102    acpica/parser/psloop.c
103    acpica/parser/psobject.c
104    acpica/parser/psopcode.c
105    acpica/parser/psopinfo.c
106    acpica/parser/psparse.c
107    acpica/parser/psscope.c
108    acpica/parser/pstree.c
109    acpica/parser/psutils.c
110    acpica/parser/pswalk.c
111    acpica/parser/psxface.c
112    acpica/resources/rsaddr.c
113    acpica/resources/rscalc.c
114    acpica/resources/rscreate.c
115    # acpica/resources/rsdump.c
116    # acpica/resources/rsdumpinfo.c
117    acpica/resources/rsinfo.c
118    acpica/resources/rsio.c
119    acpica/resources/rsirq.c
120    acpica/resources/rslist.c
121    acpica/resources/rsmemory.c
122    acpica/resources/rsmisc.c
123    acpica/resources/rsserial.c
124    acpica/resources/rsutils.c
125    acpica/resources/rsxface.c
126    acpica/tables/tbdata.c
127    acpica/tables/tbfadt.c
128    acpica/tables/tbfind.c
129    acpica/tables/tbinstal.c
130    acpica/tables/tbprint.c
131    acpica/tables/tbutils.c
132    acpica/tables/tbxface.c
133    acpica/tables/tbxfload.c
134    acpica/tables/tbxfroot.c
135    acpica/utilities/utaddress.c
136    acpica/utilities/utalloc.c
137    acpica/utilities/utascii.c
138    acpica/utilities/utbuffer.c
139    acpica/utilities/utcache.c
140    acpica/utilities/utcksum.c
141    # acpica/utilities/utclib.c
142    acpica/utilities/utcopy.c
143    # acpica/utilities/utdebug.c
144    acpica/utilities/utdecode.c
145    acpica/utilities/utdelete.c
146    acpica/utilities/uterror.c
147    acpica/utilities/uteval.c
148    # acpica/utilities/utfileio.c
149    acpica/utilities/uthex.c
150    acpica/utilities/utids.c
151    acpica/utilities/utinit.c
152    acpica/utilities/utlock.c
153    acpica/utilities/utmath.c
154    acpica/utilities/utmisc.c
155    acpica/utilities/utmutex.c
156    acpica/utilities/utnonansi.c
157    acpica/utilities/utobject.c
158    acpica/utilities/utosi.c
159    acpica/utilities/utownerid.c
160    acpica/utilities/utpredef.c
161    # acpica/utilities/utprint.c
162    # acpica/utilities/utresdecode.c
163    acpica/utilities/utresrc.c
164    acpica/utilities/utstate.c
165    acpica/utilities/utstring.c
166    acpica/utilities/utstrtoul64.c
167    acpica/utilities/utstrsuppt.c
168    # acpica/utilities/utuuid.c
169    acpica/utilities/uttrack.c
170    acpica/utilities/utxface.c
171    acpica/utilities/utxferror.c
172    acpica/utilities/utxfinit.c
173    acpica/utilities/utxfmutex.c)
174
175list(APPEND ACPICA_PCH_SKIP_SOURCE
176    acpica/utilities/utexcep.c
177    acpica/utilities/utglobal.c)
178
179add_library(acpica
180    ${ACPICA_SOURCE}
181    ${ACPICA_PCH_SKIP_SOURCE})
182
183add_pch(acpica acpica/include/acpi.h "${ACPICA_PCH_SKIP_SOURCE}")
184set_target_properties(acpica PROPERTIES COMPILE_DEFINITIONS "ACPI_USE_LOCAL_CACHE;ACPI_USE_SYSTEM_INTTYPES")
185add_dependencies(acpica bugcodes xdk)
186
187list(APPEND ACPI_SOURCE
188    busmgr/bus.c
189    busmgr/button.c
190    busmgr/power.c
191    busmgr/utils.c
192    busmgr/system.c
193    osl.c
194    acpienum.c
195    eval.c
196    interface.c
197    pnp.c
198    power.c
199    buspdo.c
200    main.c)
201
202add_library(acpi MODULE
203    ${ACPI_SOURCE}
204    acpi.rc)
205
206set_module_type(acpi kernelmodedriver)
207target_link_libraries(acpi wdmguid acpica memcmp strtol ${PSEH_LIB})
208add_importlibs(acpi ntoskrnl hal)
209add_pch(acpi precomp.h ACPI_SOURCE)
210add_cd_file(TARGET acpi DESTINATION reactos/system32/drivers NO_CAB FOR all)
211add_driver_inf(acpi acpi.inf)
212
213add_subdirectory(cmbatt)
214add_subdirectory(compbatt)
215