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