[ndk] Add enable profile flag
[platform/core/ml/nntrainer.git] / meson.build
index 39256d7..7d13a41 100644 (file)
@@ -184,6 +184,7 @@ if get_option('enable-android')
     'NDK_APPLICATION_MK': jni_root / 'Application.mk',
     'NDK_LIBS_OUT': jni_build_root / 'libs',
     'NDK_OUT': jni_build_root / 'objs',
+    'ENABLE_PROFILE': get_option('enable-profile') ? 1 : 0,
   }
 
   num_threads = run_command('grep', '-c', '^processor', '/proc/cpuinfo').stdout().strip()