libpldm: Migrate to subproject
Organize files in libpldm to make it a subproject
In the current state, libpldm is not readily consumable
as a subproject.This commit does all the necessary re-organisation
of the source code to make it work as a subproject.
There are no .c/.h files changes in this commit, only meson
changes and re-organising the code structure.
Signed-off-by: Manojkiran Eda <manojkiran.eda@gmail.com>
Change-Id: I20a71c0c972b1fd81fb359d604433618799102c6
diff --git a/include/libpldm/meson.build b/include/libpldm/meson.build
new file mode 100644
index 0000000..0d25754
--- /dev/null
+++ b/include/libpldm/meson.build
@@ -0,0 +1,35 @@
+libpldm_include_dir += include_directories('.')
+
+libpldm_headers += files(
+ 'base.h',
+ 'pldm_types.h',
+ 'platform.h',
+ 'bios.h',
+ 'bios_table.h',
+ 'entity.h',
+ 'states.h',
+ 'state_set.h',
+ 'fru.h',
+ 'utils.h',
+ 'pdr.h',
+ 'firmware_update.h'
+ )
+
+if get_option('oem-ibm').enabled()
+ libpldm_include_dir += include_directories('oem/ibm')
+ libpldm_headers += files(
+ 'oem/ibm/libpldm/entity_oem_ibm.h',
+ 'oem/ibm/libpldm/file_io.h',
+ 'oem/ibm/libpldm/host.h',
+ 'oem/ibm/libpldm/fru_oem_ibm.h',
+ 'oem/ibm/libpldm/platform_oem_ibm.h',
+ 'oem/ibm/libpldm/state_set_oem_ibm.h'
+ )
+endif
+
+if get_option('requester-api').enabled()
+ libpldm_headers += files(
+ 'requester/pldm.h'
+ )
+endif
+