|
| 1 | +set(AP_COMMON_DEPS absl) |
| 2 | +if(WITH_ONEDNN) |
| 3 | + list(APPEND AP_COMMON_DEPS onednn) |
| 4 | +endif() |
| 5 | + |
| 6 | +file(GLOB_RECURSE axpr_srcs "src/axpr/*.cc") |
| 7 | +set(axpr_deps common) |
| 8 | +cc_library( |
| 9 | + axpr |
| 10 | + SRCS ${axpr_srcs} |
| 11 | + DEPS ${AP_COMMON_DEPS} ${axpr_deps}) |
| 12 | + |
| 13 | +file(GLOB_RECURSE ap_drr_srcs "src/drr/*.cc") |
| 14 | +set(ap_drr_deps axpr) |
| 15 | +cc_library( |
| 16 | + ap_drr |
| 17 | + SRCS ${ap_drr_srcs} |
| 18 | + DEPS ${AP_COMMON_DEPS} ${ap_drr_deps}) |
| 19 | + |
| 20 | +file(GLOB_RECURSE ap_code_module_srcs "src/code_module/*.cc") |
| 21 | +set(ap_code_module_deps axpr) |
| 22 | +cc_library( |
| 23 | + ap_code_module |
| 24 | + SRCS ${ap_code_module_srcs} |
| 25 | + DEPS ${AP_COMMON_DEPS} ${ap_code_module_deps}) |
| 26 | + |
| 27 | +file(GLOB_RECURSE ap_code_gen_srcs "src/code_gen/*.cc") |
| 28 | +set(ap_code_gen_deps axpr ap_code_module) |
| 29 | +cc_library( |
| 30 | + ap_code_gen |
| 31 | + SRCS ${ap_code_gen_srcs} |
| 32 | + DEPS ${AP_COMMON_DEPS} ${ap_code_gen_deps}) |
| 33 | + |
| 34 | +file(GLOB_RECURSE ap_kernel_dispatch_srcs "src/kernel_dispatch/*.cc") |
| 35 | +set(ap_kernel_dispatch_deps axpr ap_code_module ap_code_gen) |
| 36 | +cc_library( |
| 37 | + ap_kernel_dispatch |
| 38 | + SRCS ${ap_kernel_dispatch_srcs} |
| 39 | + DEPS ${AP_COMMON_DEPS} ${ap_kernel_dispatch_deps}) |
| 40 | + |
| 41 | +file(GLOB_RECURSE ap_phi_srcs "src/paddle/phi/*.cc") |
| 42 | +set(ap_phi_deps axpr ap_code_module ap_code_gen ap_kernel_dispatch) |
| 43 | +cc_library( |
| 44 | + ap_phi |
| 45 | + SRCS ${ap_phi_srcs} |
| 46 | + DEPS ${AP_COMMON_DEPS} ${ap_phi_deps}) |
| 47 | + |
| 48 | +file(GLOB_RECURSE ap_pir_srcs "src/paddle/pir/*.cc") |
| 49 | +set(ap_pir_deps axpr ap_drr) |
| 50 | +cc_library( |
| 51 | + ap_pir |
| 52 | + SRCS ${ap_pir_srcs} |
| 53 | + DEPS ${AP_COMMON_DEPS} ${ap_pir_deps}) |
| 54 | + |
| 55 | +file(GLOB_RECURSE ap_reified_drr_srcs "src/reified_drr/*.cc") |
| 56 | +set(ap_reified_drr_deps axpr ap_drr ap_code_module ap_code_gen) |
| 57 | +cc_library( |
| 58 | + ap_reified_drr |
| 59 | + SRCS ${ap_reified_drr_srcs} |
| 60 | + DEPS ${AP_COMMON_DEPS} ${ap_reified_drr_deps}) |
| 61 | + |
| 62 | +file(GLOB_RECURSE ap_pass_srcs "src/paddle/pass/*.cc") |
| 63 | +set(ap_pass_deps axpr ap_pir ap_drr ap_code_module ap_code_gen ap_reified_drr) |
| 64 | +cc_library( |
| 65 | + ap_pass |
| 66 | + SRCS ${ap_pass_srcs} |
| 67 | + DEPS ${AP_COMMON_DEPS} ${ap_pass_deps}) |
0 commit comments