- Add battc, acpica and acpi to build.

svn path=/branches/cmake-bringup/; revision=48691
This commit is contained in:
Amine Khaldi 2010-09-03 14:33:39 +00:00
parent f61be19dd9
commit abf5238858
5 changed files with 175 additions and 0 deletions

View file

@ -1,5 +1,7 @@
add_subdirectory(base)
add_subdirectory(battery)
add_subdirectory(bus)
add_subdirectory(input)
add_subdirectory(storage)
add_subdirectory(video)

View file

@ -0,0 +1,2 @@
add_subdirectory(battc)

View file

@ -0,0 +1,16 @@
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>")
add_definitions(-D_BATTERYCLASS_)
spec2def(battc ${CMAKE_CURRENT_SOURCE_DIR}/battc.spec ${CMAKE_CURRENT_BINARY_DIR}/battc.def)
add_library(battc SHARED battc.c battc.rc)
set_target_properties(battc PROPERTIES LINK_FLAGS "-Wl,-entry,_DriverEntry@8 -Wl,--image-base,0x00010000 -Wl,--exclude-all-symbols -Wl,--subsystem,native" SUFFIX ".sys")
target_link_libraries(battc
${REACTOS_SOURCE_DIR}/ntoskrnl/libntoskrnl.a
${REACTOS_SOURCE_DIR}/hal/halx86/libhal.a)
add_dependencies(battc psdk bugcodes)

View file

@ -0,0 +1,3 @@
add_subdirectory(acpi)

View file

@ -0,0 +1,152 @@
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>")
include_directories(include)
include_directories(acpica/include)
add_library(acpica
acpica/dispatcher/dsfield.c
acpica/dispatcher/dsinit.c
acpica/dispatcher/dsmethod.c
acpica/dispatcher/dsmthdat.c
acpica/dispatcher/dsobject.c
acpica/dispatcher/dsopcode.c
acpica/dispatcher/dsutils.c
acpica/dispatcher/dswexec.c
acpica/dispatcher/dswload.c
acpica/dispatcher/dswscope.c
acpica/dispatcher/dswstate.c
acpica/events/evevent.c
acpica/events/evgpe.c
acpica/events/evgpeblk.c
acpica/events/evmisc.c
acpica/events/evregion.c
acpica/events/evrgnini.c
acpica/events/evsci.c
acpica/events/evxface.c
acpica/events/evxfevnt.c
acpica/events/evxfregn.c
acpica/executer/exconfig.c
acpica/executer/exconvrt.c
acpica/executer/excreate.c
acpica/executer/exdump.c
acpica/executer/exfield.c
acpica/executer/exfldio.c
acpica/executer/exmisc.c
acpica/executer/exmutex.c
acpica/executer/exoparg1.c
acpica/executer/exoparg2.c
acpica/executer/exoparg3.c
acpica/executer/exoparg6.c
acpica/executer/exnames.c
acpica/executer/exprep.c
acpica/executer/exregion.c
acpica/executer/exresnte.c
acpica/executer/exresolv.c
acpica/executer/exresop.c
acpica/executer/exstore.c
acpica/executer/exstoren.c
acpica/executer/exstorob.c
acpica/executer/exsystem.c
acpica/executer/exutils.c
acpica/hardware/hwacpi.c
acpica/hardware/hwgpe.c
acpica/hardware/hwregs.c
acpica/hardware/hwsleep.c
acpica/hardware/hwtimer.c
acpica/hardware/hwvalid.c
acpica/hardware/hwxface.c
acpica/namespace/nsaccess.c
acpica/namespace/nsalloc.c
acpica/namespace/nsdump.c
acpica/namespace/nsdumpdv.c
acpica/namespace/nseval.c
acpica/namespace/nsinit.c
acpica/namespace/nsload.c
acpica/namespace/nsnames.c
acpica/namespace/nsobject.c
acpica/namespace/nsparse.c
acpica/namespace/nspredef.c
acpica/namespace/nsrepair.c
acpica/namespace/nsrepair2.c
acpica/namespace/nssearch.c
acpica/namespace/nsutils.c
acpica/namespace/nswalk.c
acpica/namespace/nsxfeval.c
acpica/namespace/nsxfname.c
acpica/namespace/nsxfobj.c
acpica/parser/psargs.c
acpica/parser/psloop.c
acpica/parser/psopcode.c
acpica/parser/psparse.c
acpica/parser/psscope.c
acpica/parser/pstree.c
acpica/parser/psutils.c
acpica/parser/pswalk.c
acpica/parser/psxface.c
acpica/resources/rsaddr.c
acpica/resources/rscalc.c
acpica/resources/rscreate.c
acpica/resources/rsdump.c
acpica/resources/rsinfo.c
acpica/resources/rsio.c
acpica/resources/rsirq.c
acpica/resources/rslist.c
acpica/resources/rsmemory.c
acpica/resources/rsmisc.c
acpica/resources/rsutils.c
acpica/resources/rsxface.c
acpica/tables/tbfadt.c
acpica/tables/tbfind.c
acpica/tables/tbinstal.c
acpica/tables/tbutils.c
acpica/tables/tbxface.c
acpica/tables/tbxfroot.c
acpica/utilities/utalloc.c
acpica/utilities/utcache.c
acpica/utilities/utclib.c
acpica/utilities/utcopy.c
acpica/utilities/utdebug.c
acpica/utilities/utdelete.c
acpica/utilities/uteval.c
acpica/utilities/utglobal.c
acpica/utilities/utids.c
acpica/utilities/utinit.c
acpica/utilities/utlock.c
acpica/utilities/utmath.c
acpica/utilities/utmisc.c
acpica/utilities/utmutex.c
acpica/utilities/utobject.c
acpica/utilities/utresrc.c
acpica/utilities/utstate.c
acpica/utilities/uttrack.c
acpica/utilities/utxface.c)
set_target_properties(acpica PROPERTIES COMPILE_DEFINITIONS "ACPI_USE_LOCAL_CACHE")
spec2def(acpi ${CMAKE_CURRENT_SOURCE_DIR}/acpi.spec ${CMAKE_CURRENT_BINARY_DIR}/acpi.def)
add_library(acpi SHARED
busmgr/bus.c
busmgr/button.c
busmgr/power.c
busmgr/utils.c
busmgr/system.c
osl.c
acpienum.c
eval.c
interface.c
pnp.c
power.c
buspdo.c
main.c)
set_target_properties(acpi PROPERTIES LINK_FLAGS "-Wl,-entry,_DriverEntry@8 -Wl,--image-base,0x00010000 -Wl,--exclude-all-symbols -Wl,--subsystem,native" SUFFIX ".sys")
target_link_libraries(acpi
wdmguid
acpica
${REACTOS_SOURCE_DIR}/ntoskrnl/libntoskrnl.a
${REACTOS_SOURCE_DIR}/hal/halx86/libhal.a)
add_dependencies(acpi psdk bugcodes)