I used PIO and I added below code into platformio.ino as in the post
[platformio]
default_envs = Sonoff-RFBridge-Pilight[env:Sonoff-RFBridge-Pilight]
platform = ${com.esp8266_platform}
board = esp8285
lib_deps =
${com-esp.lib_deps}
${libraries.esppilight}
${libraries.esp8266_mdns}build_flags =
${com-esp.build_flags}
‘-DZgatewayPilight=“Pilight”’
‘-DGateway_Name=“OMG_SonoffRFBridge_Pilight”’
‘-DRF_RECEIVER_GPIO=4’
‘-DRF_EMITTER_GPIO=5’
‘-DLED_INFO=13’
‘-DLED_INFO_ON=0’
board_build.flash_mode = dout